Tim Seufert commited on
Commit
01a7203
·
1 Parent(s): 74adf7b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,8 +50,8 @@ def respond(message, image, chat_history):
50
  return "", chat_history.append((message, f"Error: {str(e)}"))
51
 
52
  # Create Gradio interface
53
- with gr.ChatInterface() as demo:
54
- chatbot = gr.Chatbot()
55
  msg = gr.Textbox()
56
  img = gr.Image(type="filepath")
57
  clear = gr.ClearButton([msg, img, chatbot])
 
50
  return "", chat_history.append((message, f"Error: {str(e)}"))
51
 
52
  # Create Gradio interface
53
+ with gr.Blocks() as demo:
54
+ chatbot = gr.ChatInterface()
55
  msg = gr.Textbox()
56
  img = gr.Image(type="filepath")
57
  clear = gr.ClearButton([msg, img, chatbot])