Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,7 @@ def chatbot_response(user_input):
|
|
60 |
raw_response = qa_chain.invoke({"query": processed_query})
|
61 |
return clean_response(raw_response)
|
62 |
|
63 |
-
@spaces.GPU
|
64 |
-
with gr.Blocks() as demo:
|
65 |
gr.Markdown("# CPSL Chatbot")
|
66 |
chat_history = gr.Chatbot()
|
67 |
user_input = gr.Textbox(label="Your Message:")
|
@@ -74,3 +73,5 @@ with gr.Blocks() as demo:
|
|
74 |
return history, history
|
75 |
|
76 |
send_button.click(interact, inputs=[user_input, chat_history], outputs=[chat_history, chat_history])
|
|
|
|
|
|
60 |
raw_response = qa_chain.invoke({"query": processed_query})
|
61 |
return clean_response(raw_response)
|
62 |
|
63 |
+
with gr.Blocks() as demo: # Removed @spaces.GPU here
|
|
|
64 |
gr.Markdown("# CPSL Chatbot")
|
65 |
chat_history = gr.Chatbot()
|
66 |
user_input = gr.Textbox(label="Your Message:")
|
|
|
73 |
return history, history
|
74 |
|
75 |
send_button.click(interact, inputs=[user_input, chat_history], outputs=[chat_history, chat_history])
|
76 |
+
|
77 |
+
demo.launch()
|