Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ rag_chain = (
|
|
60 |
def chatresponse(message, history):
|
61 |
output = rag_chain.invoke(message)
|
62 |
response = output.split('ANSWER: ')[-1].strip()
|
63 |
-
|
64 |
|
65 |
# Launch the Gradio chat interface
|
66 |
gr.ChatInterface(chatresponse).launch()
|
|
|
60 |
def chatresponse(message, history):
|
61 |
output = rag_chain.invoke(message)
|
62 |
response = output.split('ANSWER: ')[-1].strip()
|
63 |
+
return response
|
64 |
|
65 |
# Launch the Gradio chat interface
|
66 |
gr.ChatInterface(chatresponse).launch()
|