Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|