prateekbh commited on
Commit
b220b28
·
verified ·
1 Parent(s): 60eaa44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -88,10 +88,11 @@ with gr.Blocks(css=css) as demo:
88
  gr.HTML(title)
89
  image = gr.Image(type="pil")
90
  submit = gr.Button(value="Upload", variant="primary")
91
-
 
92
  response_handler = (
93
  response,
94
- ["describe the image as an e commerce art product", "", image],
95
  [submit]
96
  )
97
 
@@ -101,7 +102,7 @@ with gr.Blocks(css=css) as demo:
101
  [submit]
102
  )
103
 
104
- event2 = submit.click(*response_handler)
105
- event2.then(*postresponse_handler)
106
 
107
  demo.launch()
 
88
  gr.HTML(title)
89
  image = gr.Image(type="pil")
90
  submit = gr.Button(value="Upload", variant="primary")
91
+ chat = gr.Chatbot(show_label=False)
92
+ message = gr.Textbox(interactive=True, show_label=False, container=False)
93
  response_handler = (
94
  response,
95
+ [message, chat, image],
96
  [submit]
97
  )
98
 
 
102
  [submit]
103
  )
104
 
105
+ event = submit.click(*response_handler)
106
+ event.then(*postresponse_handler)
107
 
108
  demo.launch()