fiddle with plots
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ with demo:
|
|
205 |
interactive=True
|
206 |
)
|
207 |
plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
|
208 |
-
plot = gr.Image(value=plot_fn("T5 Small", "Yes")) # Show plot when the gradio app is initialized
|
209 |
model_selector.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
210 |
eager_enabler.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
211 |
with gr.TabItem("Sample"):
|
|
|
205 |
interactive=True
|
206 |
)
|
207 |
plot_fn = functools.partial(get_plot, generate_type="Greedy Search")
|
208 |
+
plot = gr.Image(value=plot_fn("T5 Small", "Yes"), shape=[1, 1]) # Show plot when the gradio app is initialized
|
209 |
model_selector.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
210 |
eager_enabler.change(fn=plot_fn, inputs=[model_selector, eager_enabler], outputs=plot)
|
211 |
with gr.TabItem("Sample"):
|