Update app.py
Browse filesAdd run button
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()
|