cloud93n commited on
Commit
b5d7e28
·
verified ·
1 Parent(s): 809fd9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -5,10 +5,13 @@ import requests
5
  import inspect
6
  import pandas as pd
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, HfApiModel
 
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
11
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
 
 
12
 
13
  # --- Basic Agent Definition ---
14
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
 
5
  import inspect
6
  import pandas as pd
7
  from smolagents import CodeAgent, DuckDuckGoSearchTool, PythonInterpreterTool, HfApiModel
8
+ from huggingface_hub import login
9
 
10
  # (Keep Constants as is)
11
  # --- Constants ---
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
+ HF_TOKEN = os.getenv("HF_TOKEN")
14
+ login(HF_TOKEN)
15
 
16
  # --- Basic Agent Definition ---
17
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------