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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -20,10 +20,9 @@ def analyze(sentence):
20
  else:
21
  sentiment = "Negative"
22
 
23
- return {"Translated Sentence": en_sentence,
24
- "Sentiment": sentiment}
25
-
26
  iface = gr.Interface(fn=analyze,
27
  inputs="text",
28
- outputs="label")
29
  iface.launch()
 
20
  else:
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()