Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def search_knowledge_base_for_context(query: str) -> str:
|
|
| 36 |
|
| 37 |
if response.status_code != 200:
|
| 38 |
print(f"Error in modal RAG response: {response.status_code} - {response.text}")
|
| 39 |
-
return "
|
| 40 |
|
| 41 |
print(f"modal RAG Response: {response.text}")
|
| 42 |
return response.text or "No relevant information found"
|
|
@@ -70,7 +70,7 @@ def research_write_review_topic(query: str) -> str:
|
|
| 70 |
|
| 71 |
if response.status_code != 200:
|
| 72 |
print(f"Error in modal RESEARCH response: {response.status_code} - {response.text}")
|
| 73 |
-
return "
|
| 74 |
|
| 75 |
print(f"modal RESEARCH Response: {response.txt}")
|
| 76 |
return response.text or "Research completed, but no content was generated."
|
|
|
|
| 36 |
|
| 37 |
if response.status_code != 200:
|
| 38 |
print(f"Error in modal RAG response: {response.status_code} - {response.text}")
|
| 39 |
+
return "No relevant information found from the knowledge base."
|
| 40 |
|
| 41 |
print(f"modal RAG Response: {response.text}")
|
| 42 |
return response.text or "No relevant information found"
|
|
|
|
| 70 |
|
| 71 |
if response.status_code != 200:
|
| 72 |
print(f"Error in modal RESEARCH response: {response.status_code} - {response.text}")
|
| 73 |
+
return "Research completed, but no content was generated."
|
| 74 |
|
| 75 |
print(f"modal RESEARCH Response: {response.txt}")
|
| 76 |
return response.text or "Research completed, but no content was generated."
|