Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,6 +25,6 @@ def analyze_sentence(index):
|
|
25 |
return text, plot
|
26 |
|
27 |
|
28 |
-
iface = gr.Interface(fn=analyze_sentence, inputs=[gr.Dropdown(choices=dataset['text'],
|
29 |
outputs=[gr.Label(), gr.Plot(label="Plot")])
|
30 |
iface.launch()
|
|
|
25 |
return text, plot
|
26 |
|
27 |
|
28 |
+
iface = gr.Interface(fn=analyze_sentence, inputs=[gr.Dropdown(choices=dataset['text'], value=0, type='index')],
|
29 |
outputs=[gr.Label(), gr.Plot(label="Plot")])
|
30 |
iface.launch()
|