NKessler commited on
Commit
acdbc8b
·
verified ·
1 Parent(s): 8140ba1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,12 +22,12 @@ ARTICLE_B = """Tech industry leaders and economists are sounding the alarm over
22
  URL_A = "https://www.foxnews.com/live-news/trump-iran-israel-war-updates-march-30"
23
  URL_B = "https://edition.cnn.com/2026/03/30/world/live-news/iran-war-us-israel-trump"
24
 
25
- # Initialize the Hugging Face Client
26
  GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")
27
  if GEMINI_API_KEY:
28
  genai.configure(api_key=GEMINI_API_KEY)
29
 
30
- ai_model = genai.GenerativeModel('gemini-1.5-pro')
31
 
32
  def _truncate_to_words(text: str, limit: int) -> str:
33
  """Truncates text by word count."""
 
22
  URL_A = "https://www.foxnews.com/live-news/trump-iran-israel-war-updates-march-30"
23
  URL_B = "https://edition.cnn.com/2026/03/30/world/live-news/iran-war-us-israel-trump"
24
 
25
+ # Initialize the AI model
26
  GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")
27
  if GEMINI_API_KEY:
28
  genai.configure(api_key=GEMINI_API_KEY)
29
 
30
+ ai_model = genai.GenerativeModel('gemini-1.5-pro-latest')
31
 
32
  def _truncate_to_words(text: str, limit: int) -> str:
33
  """Truncates text by word count."""