Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,8 @@ with gr.Blocks() as demo:
|
|
| 24 |
with gr.Column():
|
| 25 |
prompt = gr.Textbox(placeholder="enter prompt")
|
| 26 |
image = gr.Image(source="upload", type="filepath")
|
| 27 |
-
gallery_out = gr.Gallery()
|
|
|
|
| 28 |
submit_btn = gr.Button("go")
|
| 29 |
|
| 30 |
inputs = [
|
|
@@ -33,6 +34,6 @@ with gr.Blocks() as demo:
|
|
| 33 |
]
|
| 34 |
outputs = [gallery_out]
|
| 35 |
|
| 36 |
-
submit_btn.click(infer, inputs,
|
| 37 |
|
| 38 |
demo.launch().queue()
|
|
|
|
| 24 |
with gr.Column():
|
| 25 |
prompt = gr.Textbox(placeholder="enter prompt")
|
| 26 |
image = gr.Image(source="upload", type="filepath")
|
| 27 |
+
#gallery_out = gr.Gallery()
|
| 28 |
+
text_out = gr.Textbox()
|
| 29 |
submit_btn = gr.Button("go")
|
| 30 |
|
| 31 |
inputs = [
|
|
|
|
| 34 |
]
|
| 35 |
outputs = [gallery_out]
|
| 36 |
|
| 37 |
+
submit_btn.click(infer, inputs, text_out)
|
| 38 |
|
| 39 |
demo.launch().queue()
|