Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,8 @@ custom_role_conversions=None,
|
|
110 |
image_generation_tool = load_tool(
|
111 |
"agents-course/text-to-image",
|
112 |
model_id="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud",
|
113 |
-
trust_remote_code=True
|
|
|
114 |
)
|
115 |
|
116 |
with open("prompts.yaml", 'r') as stream:
|
|
|
110 |
image_generation_tool = load_tool(
|
111 |
"agents-course/text-to-image",
|
112 |
model_id="https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud",
|
113 |
+
trust_remote_code=True,
|
114 |
+
token=os.getenv('HF_TOKEN')
|
115 |
)
|
116 |
|
117 |
with open("prompts.yaml", 'r') as stream:
|