ShadowTEM commited on
Commit
7a765bf
·
verified ·
1 Parent(s): 81ac400

changed llm to gemini-2.0-flash

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -39,7 +39,7 @@ class CancerApp:
39
  query += f"\n{i}. {result}"
40
 
41
  try:
42
- gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", message, query)
43
  except Exception as e:
44
  print("Gemini error:", e)
45
  gemini_response = f"Error: {str(e)}"
@@ -57,7 +57,7 @@ class CancerApp:
57
  for i, result in enumerate(search_results, 1):
58
  query += f"\n{i}. {result}"
59
  try:
60
- gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", transcription, query)
61
  except Exception as e:
62
  print("Gemini error:", e)
63
  gemini_response = f"Error: {str(e)}"
@@ -91,7 +91,7 @@ class CancerApp:
91
 
92
 
93
  try:
94
- gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17", transcription,query)
95
  gemini_response = remove_stars(gemini_response)
96
  except Exception as e:
97
  print("Gemini error:", e)
@@ -108,7 +108,7 @@ class CancerApp:
108
  query += f"\n{i}. {result}"
109
 
110
  try:
111
- gemini_response = self.llm_processor.call_gemini_llm("gemini-2.5-flash-preview-04-17",message,query)
112
  gemini_response = remove_stars(gemini_response)
113
  except Exception as e:
114
  print("Gemini error:", e)
 
39
  query += f"\n{i}. {result}"
40
 
41
  try:
42
+ gemini_response = self.llm_processor.call_gemini_llm("gemini-2.0-flash", message, query)
43
  except Exception as e:
44
  print("Gemini error:", e)
45
  gemini_response = f"Error: {str(e)}"
 
57
  for i, result in enumerate(search_results, 1):
58
  query += f"\n{i}. {result}"
59
  try:
60
+ gemini_response = self.llm_processor.call_gemini_llm("gemini-2.0-flash", transcription, query)
61
  except Exception as e:
62
  print("Gemini error:", e)
63
  gemini_response = f"Error: {str(e)}"
 
91
 
92
 
93
  try:
94
+ gemini_response = self.llm_processor.call_gemini_llm("gemini-2.0-flash", transcription,query)
95
  gemini_response = remove_stars(gemini_response)
96
  except Exception as e:
97
  print("Gemini error:", e)
 
108
  query += f"\n{i}. {result}"
109
 
110
  try:
111
+ gemini_response = self.llm_processor.call_gemini_llm("gemini-2.0-flash",message,query)
112
  gemini_response = remove_stars(gemini_response)
113
  except Exception as e:
114
  print("Gemini error:", e)