shengqiangShi commited on
Commit
9864597
·
verified ·
1 Parent(s): 7765f93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
51
  API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
52
 
53
 
54
- API_TOKEN = os.environ.get("ct")
55
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
56
 
57
 
 
51
  API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
52
 
53
 
54
+ API_TOKEN = os.environ.get("HF_TOKEN")
55
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
56
 
57