Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ def get_conversational_rag_chain(retriever_chain):
|
|
135 |
|
136 |
|
137 |
def get_response(message, history=[]):
|
138 |
-
|
139 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
140 |
|
141 |
response = conversation_rag_chain.invoke({
|
@@ -164,6 +164,7 @@ async def startup():
|
|
164 |
# Define API endpoint to receive queries and provide responses
|
165 |
@app.post("/generate/")
|
166 |
def generate(user_input):
|
|
|
167 |
return get_response(user_input, [])
|
168 |
|
169 |
# Define API endpoint to receive queries and provide responses
|
|
|
135 |
|
136 |
|
137 |
def get_response(message, history=[]):
|
138 |
+
retriever_chain = index_urls_in_rag()
|
139 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
140 |
|
141 |
response = conversation_rag_chain.invoke({
|
|
|
164 |
# Define API endpoint to receive queries and provide responses
|
165 |
@app.post("/generate/")
|
166 |
def generate(user_input):
|
167 |
+
|
168 |
return get_response(user_input, [])
|
169 |
|
170 |
# Define API endpoint to receive queries and provide responses
|