lopera47 commited on
Commit
62facc7
·
verified ·
1 Parent(s): 8c9dc49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def read_excel_tool(file_path: str) -> str:
61
  class BasicAgent:
62
  def __init__(self):
63
  print("BasicAgent initialized.")
64
- openaikey = 'always_secret_jejeje'
65
  self.system_message = (
66
  "You are a question answering agent for scientific and encyclopedic questions. "
67
  "Your goal is to provide concise, factually correct answers using only verified sources. "
@@ -71,7 +71,7 @@ class BasicAgent:
71
 
72
  model = InferenceClientModel(
73
  model_id="gpt-4-turbo",
74
- token=openaikey,
75
  provider="openai"#,
76
  # temperature=0.0 # 0.7 by default (not sure)
77
  )
 
61
  class BasicAgent:
62
  def __init__(self):
63
  print("BasicAgent initialized.")
64
+ openai_key = os.environ.get("OPENAI_API_KEY")
65
  self.system_message = (
66
  "You are a question answering agent for scientific and encyclopedic questions. "
67
  "Your goal is to provide concise, factually correct answers using only verified sources. "
 
71
 
72
  model = InferenceClientModel(
73
  model_id="gpt-4-turbo",
74
+ token=openai_key,
75
  provider="openai"#,
76
  # temperature=0.0 # 0.7 by default (not sure)
77
  )