dar-tau commited on
Commit
223968c
·
verified ·
1 Parent(s): 5e8795d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'], index=0, type='index')],
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()