Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,15 +54,10 @@ custom_role_conversions=None,
|
|
54 |
)
|
55 |
|
56 |
|
57 |
-
|
58 |
-
image_generation_tool = load_tool(
|
59 |
-
"huggingface-tools/text-to-image", # Nombre oficial
|
60 |
-
model="stabilityai/stable-diffusion-xl-base-1.0", # Modelo específico
|
61 |
-
trust_remote_code=True
|
62 |
-
)
|
63 |
|
64 |
# Import tool from Hub
|
65 |
-
|
66 |
|
67 |
with open("prompts.yaml", 'r') as stream:
|
68 |
prompt_templates = yaml.safe_load(stream)
|
|
|
54 |
)
|
55 |
|
56 |
|
57 |
+
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
# Import tool from Hub
|
60 |
+
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
61 |
|
62 |
with open("prompts.yaml", 'r') as stream:
|
63 |
prompt_templates = yaml.safe_load(stream)
|