Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,12 @@ import yaml
|
|
16 |
# --- Constants ---
|
17 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
18 |
#--SM
|
19 |
-
model_id="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/"
|
|
|
|
|
|
|
|
|
|
|
20 |
# Initialize the model
|
21 |
model = HfApiModel(model_id)
|
22 |
#model = HfApiModel("Qwen/Qwen2.5-Coder-32B-Instruct")
|
@@ -32,20 +37,21 @@ class BasicAgent:
|
|
32 |
GoogleSearchTool(provider="serper"),
|
33 |
VisitWebpageTool()
|
34 |
],
|
35 |
-
additional_authorized_imports=[
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
],
|
43 |
name="agent",
|
44 |
description="agent desc",
|
45 |
#planning_interval=5,
|
46 |
verbosity_level=2,
|
47 |
#max_steps=15,
|
48 |
)
|
|
|
49 |
print("BasicAgent initialized.")
|
50 |
|
51 |
|
|
|
16 |
# --- Constants ---
|
17 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
18 |
#--SM
|
19 |
+
#model_id="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/"
|
20 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct"
|
21 |
+
|
22 |
+
|
23 |
+
|
24 |
+
|
25 |
# Initialize the model
|
26 |
model = HfApiModel(model_id)
|
27 |
#model = HfApiModel("Qwen/Qwen2.5-Coder-32B-Instruct")
|
|
|
37 |
GoogleSearchTool(provider="serper"),
|
38 |
VisitWebpageTool()
|
39 |
],
|
40 |
+
#additional_authorized_imports=[
|
41 |
+
# "geopandas",
|
42 |
+
# "plotly",
|
43 |
+
# "shapely",
|
44 |
+
# "json",
|
45 |
+
# "pandas",
|
46 |
+
# "numpy",
|
47 |
+
#],
|
48 |
name="agent",
|
49 |
description="agent desc",
|
50 |
#planning_interval=5,
|
51 |
verbosity_level=2,
|
52 |
#max_steps=15,
|
53 |
)
|
54 |
+
|
55 |
print("BasicAgent initialized.")
|
56 |
|
57 |
|