Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -61,10 +61,12 @@ with gr.Blocks(css=css) as demo:
|
|
61 |
Upload an image, get a story !
|
62 |
"""
|
63 |
)
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
68 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[caption, story])
|
69 |
|
70 |
demo.queue().launch()
|
|
|
61 |
Upload an image, get a story !
|
62 |
"""
|
63 |
)
|
64 |
+
with gr.Row():
|
65 |
+
with gr.Column():
|
66 |
+
image_in = gr.Image(label="Image input", type="filepath")
|
67 |
+
submit_btn = gr.Button('Sumbit')
|
68 |
+
caption = gr.Textbox(label="Generated Caption")
|
69 |
+
story = gr.Textbox(label="generated Story")
|
70 |
submit_btn.click(fn=infer, inputs=[image_in], outputs=[caption, story])
|
71 |
|
72 |
demo.queue().launch()
|