Spaces:
Runtime error
Runtime error
SUPERFIRE777
commited on
Commit
·
3180ee0
1
Parent(s):
5a2d6a6
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,10 @@ def analyze(sentence):
|
|
22 |
|
23 |
return (en_sentence, sentiment)
|
24 |
|
|
|
|
|
25 |
|
26 |
-
iface = gr.Interface(fn=analyze,
|
|
|
|
|
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()
|