Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -83,8 +83,8 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
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")
|
88 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|
90 |
#gr.Examples(
|
@@ -98,8 +98,9 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
98 |
#fn=infer,
|
99 |
#cache_examples=True,
|
100 |
)
|
101 |
-
|
102 |
-
|
|
|
103 |
|
104 |
#with gr.Row():
|
105 |
# 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")
|
88 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|
90 |
#gr.Examples(
|
|
|
98 |
#fn=infer,
|
99 |
#cache_examples=True,
|
100 |
)
|
101 |
+
|
102 |
+
gr.Interface(fn=infer, inputs = [prompts, negative_prompts, conditioning_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)
|