Update app.py
Browse filestrying submit button with blocks again
app.py
CHANGED
|
@@ -78,17 +78,16 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
| 78 |
prompts = gr.Textbox(label="Prompt")
|
| 79 |
negative_prompts = gr.Textbox(label="Negative Prompt")
|
| 80 |
conditioning_image = gr.Image(label="Conditioning Image")
|
| 81 |
-
|
| 82 |
with gr.Column():
|
| 83 |
#keypoint_tool = addp5sketch(sketch_url)
|
| 84 |
keypoint_tool = gr.HTML(lines)
|
| 85 |
-
|
| 86 |
-
|
|
|
|
| 87 |
|
| 88 |
-
gr.Interface(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = "gallery",
|
| 89 |
examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
| 90 |
-
|
| 91 |
-
#gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
|
| 92 |
|
| 93 |
with gr.Row():
|
| 94 |
report = wandb_report(report_url)
|
|
|
|
| 78 |
prompts = gr.Textbox(label="Prompt")
|
| 79 |
negative_prompts = gr.Textbox(label="Negative Prompt")
|
| 80 |
conditioning_image = gr.Image(label="Conditioning Image")
|
| 81 |
+
|
| 82 |
with gr.Column():
|
| 83 |
#keypoint_tool = addp5sketch(sketch_url)
|
| 84 |
keypoint_tool = gr.HTML(lines)
|
| 85 |
+
submit_btn = gr.Button(value="Submit")
|
| 86 |
+
submit_btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
|
| 87 |
+
examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
| 88 |
|
| 89 |
+
#gr.Interface(fn=infer, inputs = [prompts, negative_prompts, conditioning_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)
|