Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ model = HfApiModel(
|
|
| 64 |
)
|
| 65 |
|
| 66 |
# Import tool from Hub (example: text-to-image tool)
|
| 67 |
-
image_generation_tool = load_tool("
|
| 68 |
|
| 69 |
with open("prompts.yaml", 'r') as stream:
|
| 70 |
prompt_templates = yaml.safe_load(stream)
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
# Import tool from Hub (example: text-to-image tool)
|
| 67 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 68 |
|
| 69 |
with open("prompts.yaml", 'r') as stream:
|
| 70 |
prompt_templates = yaml.safe_load(stream)
|