Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -149,6 +149,11 @@ def run_chain(user_query):
|
|
149 |
initial_ai_response = chain.run(input_documents=ss_results, question=user_query)
|
150 |
temp_ai_response = initial_ai_response.partition('<|end|>')[0]
|
151 |
final_ai_response = temp_ai_response.replace('\n', '')
|
|
|
|
|
|
|
|
|
|
|
152 |
return final_ai_response
|
153 |
else:
|
154 |
print("Invalid inputs.")
|
|
|
149 |
initial_ai_response = chain.run(input_documents=ss_results, question=user_query)
|
150 |
temp_ai_response = initial_ai_response.partition('<|end|>')[0]
|
151 |
final_ai_response = temp_ai_response.replace('\n', '')
|
152 |
+
print(final_ai_response)
|
153 |
+
print(index_status)
|
154 |
+
print(index_name_extracted)
|
155 |
+
print(namespace)
|
156 |
+
print("****************")
|
157 |
return final_ai_response
|
158 |
else:
|
159 |
print("Invalid inputs.")
|