JPM34 commited on
Commit
c49b8ba
·
1 Parent(s): 9a283d6

Update variable default_api_url

Browse files
Files changed (2) hide show
  1. agent_gemini.py +3 -1
  2. app.py +1 -0
agent_gemini.py CHANGED
@@ -32,6 +32,7 @@ from tools_browser import website_scrape, web_search
32
  from answers import create_final_answer_graph, validate_answer
33
 
34
  logger = logging.getLogger(__name__)
 
35
 
36
 
37
  class BasicAgent:
@@ -124,7 +125,8 @@ class BasicAgent:
124
  # Create a temporary directory that will be automatically cleaned up
125
  with tempfile.TemporaryDirectory() as temp_dir:
126
  while attempt < max_retries:
127
- default_api_url = os.getenv("DEFAULT_API_URL")
 
128
  file_url = f"{default_api_url}/files/{task_id}"
129
 
130
  try:
 
32
  from answers import create_final_answer_graph, validate_answer
33
 
34
  logger = logging.getLogger(__name__)
35
+ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
36
 
37
 
38
  class BasicAgent:
 
125
  # Create a temporary directory that will be automatically cleaned up
126
  with tempfile.TemporaryDirectory() as temp_dir:
127
  while attempt < max_retries:
128
+ # default_api_url = os.getenv("DEFAULT_API_URL")
129
+ default_api_url = DEFAULT_API_URL
130
  file_url = f"{default_api_url}/files/{task_id}"
131
 
132
  try:
app.py CHANGED
@@ -14,6 +14,7 @@ from agent_gemini import BasicAgent
14
  # Load environment variables from .env file
15
  load_dotenv()
16
 
 
17
 
18
  # Configure logging
19
  logging.basicConfig(
 
14
  # Load environment variables from .env file
15
  load_dotenv()
16
 
17
+ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
18
 
19
  # Configure logging
20
  logging.basicConfig(