Spaces:
Runtime error
Runtime error
Update app.py
Browse filestry eliminating spacing
app.py
CHANGED
@@ -83,24 +83,11 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
83 |
#keypoint_tool = addp5sketch(sketch_url)
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
-
|
87 |
-
|
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 |
|
102 |
-
gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
|
103 |
-
examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
104 |
|
105 |
#with gr.Row():
|
106 |
# report = wandb_report(report_url)
|
|
|
83 |
#keypoint_tool = addp5sketch(sketch_url)
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
+
submit_btn = gr.Button("Submit")
|
87 |
+
submit_btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery", examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
+
#gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
|
90 |
+
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
91 |
|
92 |
#with gr.Row():
|
93 |
# report = wandb_report(report_url)
|