Spaces:
Sleeping
Sleeping
update mock space.GPU
Browse files
app.py
CHANGED
|
@@ -46,9 +46,12 @@ model_id='Qwen/Qwen2.5-Coder-32B-Instruct',# it is possible that this model may
|
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
# Import tool from Hub
|
| 51 |
-
image_generation_tool =
|
| 52 |
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 46 |
custom_role_conversions=None,
|
| 47 |
)
|
| 48 |
|
| 49 |
+
@space.GPU
|
| 50 |
+
def load_my_tool():
|
| 51 |
+
return load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 52 |
|
| 53 |
# Import tool from Hub
|
| 54 |
+
image_generation_tool = load_my_tool()
|
| 55 |
|
| 56 |
with open("prompts.yaml", 'r') as stream:
|
| 57 |
prompt_templates = yaml.safe_load(stream)
|