Spaces:
Runtime error
Runtime error
Update agent model in Agent class to 'meta-llama/Llama-3.3-70B-Instruct'
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ def generate_audio(prompt: str) -> object:
|
|
| 157 |
## agent definition
|
| 158 |
class Agent:
|
| 159 |
def __init__(self, ):
|
| 160 |
-
client = HfApiModel("
|
| 161 |
self.agent = CodeAgent(
|
| 162 |
model=client,
|
| 163 |
tools=[DuckDuckGoSearchTool(max_results=5), VisitWebpageTool(max_output_length=20000), generate_image, download_images, transcribe_audio],
|
|
|
|
| 157 |
## agent definition
|
| 158 |
class Agent:
|
| 159 |
def __init__(self, ):
|
| 160 |
+
client = HfApiModel("meta-llama/Llama-3.3-70B-Instruct", provider="nebius", api_key=os.getenv("NEBIUS_API_KEY"))
|
| 161 |
self.agent = CodeAgent(
|
| 162 |
model=client,
|
| 163 |
tools=[DuckDuckGoSearchTool(max_results=5), VisitWebpageTool(max_output_length=20000), generate_image, download_images, transcribe_audio],
|