LucMarcelPellinger commited on
Commit
5f2bc51
·
verified ·
1 Parent(s): 21f8e85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,13 +65,13 @@ final_answer = FinalAnswerTool()
65
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
66
 
67
  # --- Configure LLM Model ---
68
- if not os.getenv("GEMINI_KEY"):
69
- print("CRITICAL: GEMINI_KEY environment variable not set. LLM will not work.")
70
  # exit(1) # Or handle gracefully
71
 
72
  model = LiteLLMModel(
73
  model_id="gemini/gemini-1.5-flash-latest",
74
- api_key=os.getenv("GEMINI_KEY"),
75
  max_tokens=4096,
76
  temperature=0.6
77
  )
 
65
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
66
 
67
  # --- Configure LLM Model ---
68
+ if not os.getenv("GEMINI_TOKEN"):
69
+ print("CRITICAL: GEMINI_TOKEN environment variable not set. LLM will not work.")
70
  # exit(1) # Or handle gracefully
71
 
72
  model = LiteLLMModel(
73
  model_id="gemini/gemini-1.5-flash-latest",
74
+ api_key=os.getenv("GEMINI_TOKEN"),
75
  max_tokens=4096,
76
  temperature=0.6
77
  )