joaogante HF staff commited on
Commit
c4faff5
1 Parent(s): 95d1492

fiddle with plots

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"):