Abbasid commited on
Commit
aee35d1
·
verified ·
1 Parent(s): c0f0be0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,6 +9,7 @@ import io
9
  import contextlib
10
  import sys
11
  import traceback
 
12
 
13
  @tool
14
  def parse_height_from_text(
@@ -123,7 +124,7 @@ model = OpenAIServerModel(
123
  # Replace all calls to HfApiModel
124
  llm_model = LiteLLMModel(
125
  model_id="gemini/gemini-2.0-flash", # you can see other model names here: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models. It is important to prefix the name with "gemini/"
126
- api_key=userdata.get("GEM_TOKEN"),
127
  max_tokens=8192
128
  )
129
 
 
9
  import contextlib
10
  import sys
11
  import traceback
12
+ import os
13
 
14
  @tool
15
  def parse_height_from_text(
 
124
  # Replace all calls to HfApiModel
125
  llm_model = LiteLLMModel(
126
  model_id="gemini/gemini-2.0-flash", # you can see other model names here: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models. It is important to prefix the name with "gemini/"
127
+ api_key=os.environ.get('GEM_TOKEN'),
128
  max_tokens=8192
129
  )
130