betki commited on
Commit
0672ab4
Β·
verified Β·
1 Parent(s): 396dc0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 "Error in retrieving context from the knowledge base."
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 "Error in retrieving research topic."
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."