Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from smolagents import GradioUI, CodeAgent, HfApiModel, LiteLLMModel
|
|
5 |
# Import our custom tools from their modules
|
6 |
from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
|
7 |
from retriever import load_guest_dataset
|
8 |
-
|
9 |
|
10 |
#model = HfApiModel(
|
11 |
# max_tokens=2096,
|
@@ -15,12 +15,10 @@ from huggingface_hub import HfApi
|
|
15 |
#)
|
16 |
|
17 |
|
18 |
-
hf_api = HfApi()
|
19 |
-
secrets = hf_api.get_secrets()
|
20 |
|
21 |
model = LiteLLMModel(
|
22 |
model_id="gemini/gemini-2.0-flash-lite",
|
23 |
-
api_key=
|
24 |
)
|
25 |
|
26 |
# Initialize the web search tool
|
|
|
5 |
# Import our custom tools from their modules
|
6 |
from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool
|
7 |
from retriever import load_guest_dataset
|
8 |
+
import os
|
9 |
|
10 |
#model = HfApiModel(
|
11 |
# max_tokens=2096,
|
|
|
15 |
#)
|
16 |
|
17 |
|
|
|
|
|
18 |
|
19 |
model = LiteLLMModel(
|
20 |
model_id="gemini/gemini-2.0-flash-lite",
|
21 |
+
api_key=os.environ['GEMINI_API_TOKEN']
|
22 |
)
|
23 |
|
24 |
# Initialize the web search tool
|