fffiloni commited on
Commit
fb54264
·
1 Parent(s): 6114fa5

Update app.py

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