Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +1 -1
backend/main.py
CHANGED
|
@@ -82,7 +82,7 @@ class RetrievalAugmentedQAPipeline:
|
|
| 82 |
formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
|
| 83 |
|
| 84 |
# Remove await since run is not an async method
|
| 85 |
-
response = self.llm.run([formatted_system_prompt, formatted_user_prompt])
|
| 86 |
|
| 87 |
return {"response": response, "context": context_list}
|
| 88 |
|
|
|
|
| 82 |
formatted_user_prompt = user_role_prompt.create_message(question=user_query, context=context_prompt)
|
| 83 |
|
| 84 |
# Remove await since run is not an async method
|
| 85 |
+
response = await self.llm.run([formatted_system_prompt, formatted_user_prompt])
|
| 86 |
|
| 87 |
return {"response": response, "context": context_list}
|
| 88 |
|