Askinkaty commited on
Commit
9d42719
·
verified ·
1 Parent(s): 0147064

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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: