Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
-
import inspect
|
| 2 |
import os
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import pandas as pd
|
| 6 |
import requests
|
| 7 |
from smolagents import (
|
| 8 |
-
AmazonBedrockServerModel,
|
| 9 |
DuckDuckGoSearchTool,
|
| 10 |
FinalAnswerPromptTemplate,
|
|
|
|
| 11 |
ManagedAgentPromptTemplate,
|
| 12 |
Model,
|
| 13 |
PlanningPromptTemplate,
|
|
@@ -74,11 +73,8 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 74 |
|
| 75 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 76 |
try:
|
| 77 |
-
model =
|
| 78 |
-
model_id="
|
| 79 |
-
client_kwargs={
|
| 80 |
-
"region_name": "eu-west-1",
|
| 81 |
-
},
|
| 82 |
)
|
| 83 |
agent = GAIAgent(model=model)
|
| 84 |
except Exception as e:
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import pandas as pd
|
| 5 |
import requests
|
| 6 |
from smolagents import (
|
|
|
|
| 7 |
DuckDuckGoSearchTool,
|
| 8 |
FinalAnswerPromptTemplate,
|
| 9 |
+
InferenceClientModel,
|
| 10 |
ManagedAgentPromptTemplate,
|
| 11 |
Model,
|
| 12 |
PlanningPromptTemplate,
|
|
|
|
| 73 |
|
| 74 |
# 1. Instantiate Agent ( modify this part to create your agent)
|
| 75 |
try:
|
| 76 |
+
model = InferenceClientModel(
|
| 77 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
|
|
|
|
|
|
|
|
|
| 78 |
)
|
| 79 |
agent = GAIAgent(model=model)
|
| 80 |
except Exception as e:
|