emirkocak commited on
Commit
6d55c24
1 Parent(s): c7ab208

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -16,11 +16,14 @@ def gradio_comment(comment):
16
 
17
  return text
18
 
19
- GradioGUI = gr.Interface(
20
- fn=gradio_comment,
21
- inputs='text',
22
- outputs='text',
23
- title='Aşağılayıcı Yorum Tespiti',
24
- css='''span{text-transform: uppercase} p{text-align: center}''')
25
 
26
- GradioGUI.launch()
 
 
 
 
16
 
17
  return text
18
 
19
+ # GradioGUI = gr.Interface(
20
+ # fn=gradio_comment,
21
+ # inputs='text',
22
+ # outputs='text',
23
+ # title='Aşağılayıcı Yorum Tespiti',
24
+ # css='''span{text-transform: uppercase} p{text-align: center}''')
25
 
26
+ iface = gr.Interface(gradio_comment, "text", "text")
27
+
28
+ if __name__ == "__main__":
29
+ iface.launch(enable_queue=True)