SUPERFIRE777 commited on
Commit
ce57911
·
1 Parent(s): bf43737

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -21,8 +21,11 @@ def analyze(sentence):
21
  sentiment = "Negative"
22
 
23
  return (en_sentence,sentiment)
 
 
 
24
 
25
  iface = gr.Interface(fn=analyze,
26
  inputs="text",
27
- outputs=["text"] * 2)
28
  iface.launch()
 
21
  sentiment = "Negative"
22
 
23
  return (en_sentence,sentiment)
24
+
25
+ output_format = [gr.textbox(label="Translated Sentence"),
26
+ gr.textbox(label="Sentiment")]
27
 
28
  iface = gr.Interface(fn=analyze,
29
  inputs="text",
30
+ outputs=output_format)
31
  iface.launch()