SUPERFIRE777 commited on
Commit
3180ee0
·
1 Parent(s): 5a2d6a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -22,6 +22,10 @@ def analyze(sentence):
22
 
23
  return (en_sentence, sentiment)
24
 
 
 
25
 
26
- iface = gr.Interface(fn=analyze, inputs="text", outputs=["text"]*2)
 
 
27
  iface.launch()
 
22
 
23
  return (en_sentence, sentiment)
24
 
25
+ output_format = [ {"type": "text", "label": "Translated Sentence"},
26
+ {"type": "text", "label": "Sentiment Analysis Result"}]
27
 
28
+ iface = gr.Interface(fn=analyze,
29
+ inputs="text",
30
+ outputs=output_format)
31
  iface.launch()