cowrycode commited on
Commit
1aa81e5
·
verified ·
1 Parent(s): d0ebe0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,6 +22,8 @@ import re
22
  # (Keep Constants as is)
23
  # --- Constants ---
24
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
 
25
 
26
  # --- Basic Agent Definition ---
27
 
@@ -29,7 +31,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
29
  class BasicAgent:
30
  def __init__(self):
31
  print("BasicAgent initialized. . . .")
32
- OpenAI_key = os.getenv("OPEN_AI_TOKEN")
33
  #self.llm = OpenAI(model="gpt-4o-mini", temperature=0.2, api_key=OpenAI_key)
34
  self.system_prompt = (
35
  "You are a helpful AI assistant completing GAIA benchmark tasks.\n"
 
22
  # (Keep Constants as is)
23
  # --- Constants ---
24
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
25
+ HF_key = os.getenv("HF_TOKEN")
26
+ OpenAI_key = os.getenv("OPEN_AI_TOKEN")
27
 
28
  # --- Basic Agent Definition ---
29
 
 
31
  class BasicAgent:
32
  def __init__(self):
33
  print("BasicAgent initialized. . . .")
34
+
35
  #self.llm = OpenAI(model="gpt-4o-mini", temperature=0.2, api_key=OpenAI_key)
36
  self.system_prompt = (
37
  "You are a helpful AI assistant completing GAIA benchmark tasks.\n"