Daemontatox commited on
Commit
7fa65bd
·
verified ·
1 Parent(s): dcd122e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,7 +151,7 @@ prompt = ChatPromptTemplate.from_template(template)
151
  # Create the RAG chain with chat history
152
 
153
 
154
- @spaces.GPU(600)
155
  def create_rag_chain(chat_history: str):
156
  chain = (
157
  {
@@ -169,7 +169,7 @@ def create_rag_chain(chat_history: str):
169
  chat_history = ChatHistory()
170
 
171
  # Gradio Function
172
-
173
  def ask_question_gradio(question, history):
174
  try:
175
  # Add user question to chat history
 
151
  # Create the RAG chain with chat history
152
 
153
 
154
+
155
  def create_rag_chain(chat_history: str):
156
  chain = (
157
  {
 
169
  chat_history = ChatHistory()
170
 
171
  # Gradio Function
172
+ @spaces.GPU(600)
173
  def ask_question_gradio(question, history):
174
  try:
175
  # Add user question to chat history