kfahn commited on
Commit
7c5df13
1 Parent(s): c4a3722

Update app.py

Browse files

Add run button

Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -81,10 +81,12 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
81
  image = gr.Image()
82
  with gr.Row():
83
  report = wandb_report(report_url)
 
 
84
 
85
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
86
  # examples=[["a Labrador crossing the road", "low quality", control_image]])
87
 
88
- gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
89
 
90
  demo.launch()
 
81
  image = gr.Image()
82
  with gr.Row():
83
  report = wandb_report(report_url)
84
+ btn = gr.Button("Run")
85
+ btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
86
 
87
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
88
  # examples=[["a Labrador crossing the road", "low quality", control_image]])
89
 
90
+ #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
91
 
92
  demo.launch()