Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,10 @@ model = HfApiModel(
|
|
| 50 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct", # it is possible that this model may be overloaded
|
| 51 |
custom_role_conversions=None,
|
| 52 |
)
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
# Import tool from Hub
|
| 56 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
|
|
|
| 50 |
model_id="Qwen/Qwen2.5-Coder-32B-Instruct", # it is possible that this model may be overloaded
|
| 51 |
custom_role_conversions=None,
|
| 52 |
)
|
| 53 |
+
class ZeroGPUCodeAgent(CodeAgent):
|
| 54 |
+
@spaces.GPU
|
| 55 |
+
def run(self, *args, **kwargs):
|
| 56 |
+
return super().run(*args, **kwargs)
|
| 57 |
|
| 58 |
# Import tool from Hub
|
| 59 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|