D0k-tor commited on
Commit
54f8b7a
·
1 Parent(s): 2d2629a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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)