update chatbot to the new chatbot
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ class CancerApp:
|
|
| 38 |
query += f"\n{i}. {result}"
|
| 39 |
|
| 40 |
try:
|
| 41 |
-
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.
|
| 42 |
except Exception as e:
|
| 43 |
print("Gemini error:", e)
|
| 44 |
gemini_response = f"Error: {str(e)}"
|
|
@@ -56,7 +56,7 @@ class CancerApp:
|
|
| 56 |
for i, result in enumerate(search_results, 1):
|
| 57 |
query += f"\n{i}. {result}"
|
| 58 |
try:
|
| 59 |
-
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.
|
| 60 |
except Exception as e:
|
| 61 |
print("Gemini error:", e)
|
| 62 |
gemini_response = f"Error: {str(e)}"
|
|
@@ -89,7 +89,7 @@ class CancerApp:
|
|
| 89 |
query += f"\n{i}. {result}"
|
| 90 |
|
| 91 |
try:
|
| 92 |
-
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.
|
| 93 |
gemini_response = remove_stars(gemini_response)
|
| 94 |
except Exception as e:
|
| 95 |
print("Gemini error:", e)
|
|
@@ -106,7 +106,7 @@ class CancerApp:
|
|
| 106 |
query += f"\n{i}. {result}"
|
| 107 |
|
| 108 |
try:
|
| 109 |
-
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.
|
| 110 |
gemini_response = remove_stars(gemini_response)
|
| 111 |
except Exception as e:
|
| 112 |
print("Gemini error:", e)
|
|
|
|
| 38 |
query += f"\n{i}. {result}"
|
| 39 |
|
| 40 |
try:
|
| 41 |
+
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", query)
|
| 42 |
except Exception as e:
|
| 43 |
print("Gemini error:", e)
|
| 44 |
gemini_response = f"Error: {str(e)}"
|
|
|
|
| 56 |
for i, result in enumerate(search_results, 1):
|
| 57 |
query += f"\n{i}. {result}"
|
| 58 |
try:
|
| 59 |
+
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", query)
|
| 60 |
except Exception as e:
|
| 61 |
print("Gemini error:", e)
|
| 62 |
gemini_response = f"Error: {str(e)}"
|
|
|
|
| 89 |
query += f"\n{i}. {result}"
|
| 90 |
|
| 91 |
try:
|
| 92 |
+
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", query)
|
| 93 |
gemini_response = remove_stars(gemini_response)
|
| 94 |
except Exception as e:
|
| 95 |
print("Gemini error:", e)
|
|
|
|
| 106 |
query += f"\n{i}. {result}"
|
| 107 |
|
| 108 |
try:
|
| 109 |
+
gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", query)
|
| 110 |
gemini_response = remove_stars(gemini_response)
|
| 111 |
except Exception as e:
|
| 112 |
print("Gemini error:", e)
|