Use radio
Browse files
app.py
CHANGED
@@ -193,6 +193,7 @@ with demo:
|
|
193 |
plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
|
194 |
plot = gr.Plot(value=plot_fn("T5 Small", "Yes")) # Show plot when the gradio app is initialized
|
195 |
model_selector.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
|
|
196 |
with gr.TabItem("Sample"):
|
197 |
gr.Button("New Tiger")
|
198 |
with gr.TabItem("Beam Search"):
|
|
|
193 |
plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
|
194 |
plot = gr.Plot(value=plot_fn("T5 Small", "Yes")) # Show plot when the gradio app is initialized
|
195 |
model_selector.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
196 |
+
eager_enabler.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
197 |
with gr.TabItem("Sample"):
|
198 |
gr.Button("New Tiger")
|
199 |
with gr.TabItem("Beam Search"):
|