Rajesh3338 commited on
Commit
45947e5
·
verified ·
1 Parent(s): 4b0fbeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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()