Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import os
|
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
import pandas as pd
|
5 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
|
|
6 |
|
7 |
# --- Constants ---
|
8 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
@@ -11,7 +12,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
11 |
class GAIAAgent:
|
12 |
def __init__(self):
|
13 |
print("GAIAAgent initialized.")
|
14 |
-
model =
|
15 |
search_tool = DuckDuckGoSearchTool()
|
16 |
self.agent = CodeAgent(model=model, tools=[search_tool])
|
17 |
|
|
|
2 |
import gradio as gr
|
3 |
import requests
|
4 |
import pandas as pd
|
5 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
6 |
+
import gradio as gr
|
7 |
|
8 |
# --- Constants ---
|
9 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
|
|
12 |
class GAIAAgent:
|
13 |
def __init__(self):
|
14 |
print("GAIAAgent initialized.")
|
15 |
+
self.model = gr.load("models/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B", provider="novita")
|
16 |
search_tool = DuckDuckGoSearchTool()
|
17 |
self.agent = CodeAgent(model=model, tools=[search_tool])
|
18 |
|