SoDehghan commited on
Commit
b640ff8
1 Parent(s): 624ffcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -31,14 +31,18 @@ def hsd_turkish(text_in):
31
  return sentiment_tr
32
 
33
 
34
- iface = gr.Interface(fn=[hsd_turkish],
35
- inputs=gr.inputs.Textbox(lines=2, placeholder=None, label="Enter text here:"),
36
- outputs=['text'], # a list should match the number of values returned by fn to have one input and 2 putputs.
37
- #description = "This App translates text from Danish to the English language.",
38
- title = "HSD in Turkish",
39
- theme = "peach")
40
-
41
- iface.launch(share=False, enable_queue=True)
 
 
 
 
42
 
43
 
44
  st.sidebar.title("Hate Speech Detection")
 
31
  return sentiment_tr
32
 
33
 
34
+ iface = gr.Interface(
35
+ fn=hsd_turkish,
36
+ inputs=gr.Textbox(lines=2, placeholder="Enter Text here:"),
37
+ outputs=['text'], #gr.Textbox()
38
+ title = "HSD in Turkish",
39
+ theme = "peach"
40
+ )
41
+
42
+ iface.launch(debug=True,inline=False)
43
+
44
+
45
+
46
 
47
 
48
  st.sidebar.title("Hate Speech Detection")