Tonic commited on
Commit
215954f
·
1 Parent(s): 386506a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -47,7 +47,8 @@ def process_input(text, file):
47
  if file is not None:
48
  image_path = save_image(file, "uploaded_images")
49
  response = chat_with_model(image_path=image_path, text_query=text)
50
- return response
 
51
 
52
  with gr.Blocks() as demo:
53
  gr.Markdown("""
 
47
  if file is not None:
48
  image_path = save_image(file, "uploaded_images")
49
  response = chat_with_model(image_path=image_path, text_query=text)
50
+ # Format the response for the Chatbot component
51
+ return [("bot", response)]
52
 
53
  with gr.Blocks() as demo:
54
  gr.Markdown("""