batgre commited on
Commit
bb27cd7
·
verified ·
1 Parent(s): 70a2947

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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)