Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,9 @@ with gr.Blocks() as demo:
|
|
66 |
with gr.Row():
|
67 |
with gr.Column(scale=1):
|
68 |
gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
|
|
|
69 |
with gr.Column(scale=1):
|
70 |
gr.outputs.Textbox(type="text",label="Captions")
|
71 |
-
|
|
|
72 |
demo.launch(debug=True)
|
|
|
66 |
with gr.Row():
|
67 |
with gr.Column(scale=1):
|
68 |
gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
|
69 |
+
button = gr.Button(value="Describe")
|
70 |
with gr.Column(scale=1):
|
71 |
gr.outputs.Textbox(type="text",label="Captions")
|
72 |
+
|
73 |
+
button.click(predict, gr.Textbox(), gr.Textbox())
|
74 |
demo.launch(debug=True)
|