Spaces:
Runtime error
Runtime error
Update app.py
Browse filestrying to get to work with submit button
app.py
CHANGED
@@ -84,14 +84,25 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
submit_btn = gr.Button(value="Submit")
|
87 |
-
submit_btn.click(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = "gallery"
|
88 |
-
examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
#gr.Interface(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = "gallery",
|
91 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
92 |
|
93 |
#with gr.Row():
|
94 |
# report = wandb_report(report_url)
|
95 |
|
96 |
-
|
97 |
-
|
|
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
submit_btn = gr.Button(value="Submit")
|
87 |
+
submit_btn.click(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = "gallery")
|
88 |
+
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|
90 |
+
gr.Examples(
|
91 |
+
examples=[
|
92 |
+
["a Labrador crossing the road", "low quality", "myimage.jpg"]
|
93 |
+
],
|
94 |
+
inputs=[
|
95 |
+
prompt, negative_prompt, conditioning_image
|
96 |
+
],
|
97 |
+
outputs=output,
|
98 |
+
fn=infer,
|
99 |
+
cache_examples=True,
|
100 |
+
)
|
101 |
#gr.Interface(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = "gallery",
|
102 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
103 |
|
104 |
#with gr.Row():
|
105 |
# report = wandb_report(report_url)
|
106 |
|
107 |
+
|
108 |
+
demo.launch()
|