Use radio
Browse files
app.py
CHANGED
@@ -191,7 +191,7 @@ with demo:
|
|
191 |
interactive=True
|
192 |
)
|
193 |
plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
|
194 |
-
plot = gr.Plot(value=plot_fn("T5 Small"
|
195 |
model_selector.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
196 |
with gr.TabItem("Sample"):
|
197 |
gr.Button("New Tiger")
|
|
|
191 |
interactive=True
|
192 |
)
|
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")
|