joaogante HF Staff commited on
Commit
3fdc6ff
·
1 Parent(s): da756b5

attempt to fix dropdown

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -169,7 +169,7 @@ with demo:
169
  )
170
  plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
171
  plot = gr.Plot(value=plot_fn("T5 Small")) # Show plot when the gradio app is initialized
172
- model_selector.change(fn=get_plot, inputs=model_selector, outputs=plot)
173
  with gr.TabItem("Sample"):
174
  gr.Button("New Tiger")
175
  with gr.TabItem("Beam Search"):
 
169
  )
170
  plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
171
  plot = gr.Plot(value=plot_fn("T5 Small")) # Show plot when the gradio app is initialized
172
+ model_selector.change(fn=plot_fn, inputs=model_selector, outputs=plot)
173
  with gr.TabItem("Sample"):
174
  gr.Button("New Tiger")
175
  with gr.TabItem("Beam Search"):