Satyam-Singh commited on
Commit
0213511
·
verified ·
1 Parent(s): de52306

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -44,8 +44,6 @@ def llm_response(history,text,img):
44
  # Interface Code
45
  with gr.Blocks() as app:
46
  with gr.Row():
47
- image_box = gr.Image(type="filepath")
48
-
49
  chatbot = gr.Chatbot(
50
  scale = 2,
51
  height=750
@@ -57,10 +55,10 @@ with gr.Blocks() as app:
57
 
58
  btn = gr.Button("Submit")
59
  clicked = btn.click(query_message,
60
- [chatbot,text_box,image_box],
61
  chatbot
62
  ).then(llm_response,
63
- [chatbot,text_box,image_box],
64
  chatbot
65
  )
66
  app.queue()
 
44
  # Interface Code
45
  with gr.Blocks() as app:
46
  with gr.Row():
 
 
47
  chatbot = gr.Chatbot(
48
  scale = 2,
49
  height=750
 
55
 
56
  btn = gr.Button("Submit")
57
  clicked = btn.click(query_message,
58
+ [chatbot,text_box],
59
  chatbot
60
  ).then(llm_response,
61
+ [chatbot,text_box],
62
  chatbot
63
  )
64
  app.queue()