jesusvilela commited on
Commit
e95b6f1
·
verified ·
1 Parent(s): cc610ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import yaml
2
  import os
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
 
4
 
5
  # Get current directory path
6
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
@@ -13,7 +14,7 @@ from tools.superhero_party_theme_generator import SuperheroPartyThemeTool as Sup
13
  from tools.final_answer import FinalAnswerTool as FinalAnswer
14
 
15
 
16
-
17
  model = HfApiModel(
18
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
19
  provider=None,
 
1
  import yaml
2
  import os
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
4
+ import spaces
5
 
6
  # Get current directory path
7
  CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
 
14
  from tools.final_answer import FinalAnswerTool as FinalAnswer
15
 
16
 
17
+ @spaces.GPU
18
  model = HfApiModel(
19
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
20
  provider=None,