Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,7 @@ prompt = ChatPromptTemplate.from_template(template)
|
|
151 |
# Create the RAG chain with chat history
|
152 |
|
153 |
|
154 |
-
|
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
|