jesusvilela commited on
Commit
2053bc5
·
verified ·
1 Parent(s): fca757e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -1,7 +1,6 @@
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__))
@@ -29,9 +28,7 @@ final_answer = FinalAnswer()
29
 
30
 
31
  with open(os.path.join(CURRENT_DIR, "prompts.yaml"), 'r') as stream:
32
- prompt_templates = yaml.safe_load(stream)
33
-
34
- @spaces.GPU
35
 
36
  agent = CodeAgent(
37
  model=model,
 
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__))
 
28
 
29
 
30
  with open(os.path.join(CURRENT_DIR, "prompts.yaml"), 'r') as stream:
31
+ prompt_templates = yaml.safe_load(stream)
 
 
32
 
33
  agent = CodeAgent(
34
  model=model,