joaogante HF staff commited on
Commit
b1787fa
·
1 Parent(s): bef7dfb

playing around with gradio

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -25,8 +25,7 @@ with demo:
25
  label="Model",
26
  interactive=True,
27
  )
28
- plot = gr.Image()
29
- model_selector.change(fn=get_plot, inputs=[model_selector], outputs=[plot])
30
  with gr.TabItem("Sample"):
31
  gr.Button("New Tiger")
32
  with gr.TabItem("Beam Search"):
 
25
  label="Model",
26
  interactive=True,
27
  )
28
+ model_selector.change(fn=get_plot, inputs=model_selector, outputs="image")
 
29
  with gr.TabItem("Sample"):
30
  gr.Button("New Tiger")
31
  with gr.TabItem("Beam Search"):