ash-171 commited on
Commit
ec95187
·
verified ·
1 Parent(s): 8a9ff6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -48,10 +48,8 @@ model_id = "https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud",
48
  custom_role_conversions=None,
49
  )
50
 
51
- hf_token = os.getenv("huggingaccessface")
52
-
53
  # Import tool from Hub
54
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True, hf_token=hf_token)
55
 
56
  with open("prompts.yaml", 'r') as stream:
57
  prompt_templates = yaml.safe_load(stream)
 
48
  custom_role_conversions=None,
49
  )
50
 
 
 
51
  # Import tool from Hub
52
+ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
53
 
54
  with open("prompts.yaml", 'r') as stream:
55
  prompt_templates = yaml.safe_load(stream)