Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import yaml
|
| 2 |
import os
|
| 3 |
-
from smolagents import GradioUI, CodeAgent,
|
| 4 |
|
| 5 |
# Get current directory path
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
@@ -14,7 +14,7 @@ from tools.final_answer import FinalAnswerTool as FinalAnswer
|
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
-
model =
|
| 18 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 19 |
provider=None,
|
| 20 |
)
|
|
|
|
| 1 |
import yaml
|
| 2 |
import os
|
| 3 |
+
from smolagents import GradioUI, CodeAgent, InferenceClientModel
|
| 4 |
|
| 5 |
# Get current directory path
|
| 6 |
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
+
model = InferenceClientModel(
|
| 18 |
model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
|
| 19 |
provider=None,
|
| 20 |
)
|