attempt to fix dropdown
Browse files
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=
|
| 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"):
|