Thanh Vinh Vo
commited on
Commit
Β·
65499bb
1
Parent(s):
848a6a6
update
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π΅π»ββοΈ
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: indigo
|
|
@@ -12,4 +12,4 @@ hf_oauth: true
|
|
| 12 |
hf_oauth_expiration_minutes: 480
|
| 13 |
---
|
| 14 |
|
| 15 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: VinhVo_Final_Project_Agent_Course
|
| 3 |
emoji: π΅π»ββοΈ
|
| 4 |
colorFrom: indigo
|
| 5 |
colorTo: indigo
|
|
|
|
| 12 |
hf_oauth_expiration_minutes: 480
|
| 13 |
---
|
| 14 |
|
| 15 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -31,7 +31,10 @@ class BasicAgent:
|
|
| 31 |
VisitWebpageTool(),
|
| 32 |
DuckDuckGoSearchTool(),
|
| 33 |
],
|
| 34 |
-
model=InferenceClientModel(
|
|
|
|
|
|
|
|
|
|
| 35 |
additional_authorized_imports=[
|
| 36 |
"requests",
|
| 37 |
"bs4",
|
|
@@ -39,7 +42,7 @@ class BasicAgent:
|
|
| 39 |
"wikipedia",
|
| 40 |
"pandas"
|
| 41 |
],
|
| 42 |
-
max_steps=25
|
| 43 |
)
|
| 44 |
|
| 45 |
def __call__(self, question: str) -> str:
|
|
|
|
| 31 |
VisitWebpageTool(),
|
| 32 |
DuckDuckGoSearchTool(),
|
| 33 |
],
|
| 34 |
+
model=InferenceClientModel(
|
| 35 |
+
model_id="Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 36 |
+
temperature=0
|
| 37 |
+
),
|
| 38 |
additional_authorized_imports=[
|
| 39 |
"requests",
|
| 40 |
"bs4",
|
|
|
|
| 42 |
"wikipedia",
|
| 43 |
"pandas"
|
| 44 |
],
|
| 45 |
+
max_steps=25
|
| 46 |
)
|
| 47 |
|
| 48 |
def __call__(self, question: str) -> str:
|