apple muncy commited on
Commit
3a93b08
·
1 Parent(s): 2d92cc6

add chat_fn

Browse files

Signed-off-by: apple muncy <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def chat_fn(message, history):
107
  # Create Gradio interface
108
  with gr.Blocks() as demo:
109
  gr.Markdown("### LangGraph Chat with Gradio")
110
- chatbot = gr.Chatbot(type="messages")
111
  msg = gr.Textbox(label="Type your message")
112
  send_btn = gr.Button("Send")
113
 
 
107
  # Create Gradio interface
108
  with gr.Blocks() as demo:
109
  gr.Markdown("### LangGraph Chat with Gradio")
110
+ chatbot = gr.Chatbot(fn=chat_fn, type="messages")
111
  msg = gr.Textbox(label="Type your message")
112
  send_btn = gr.Button("Send")
113