ngoctuanai commited on
Commit
868f009
·
1 Parent(s): 3937df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
7
 
8
  API_URL = "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4"
9
  API_TOKEN = os.getenv("HF_READ_TOKEN")
10
- headers = {"Authorization": f"Bearer {API_TOKEN}"}
11
 
12
 
13
  def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):
 
7
 
8
  API_URL = "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4"
9
  API_TOKEN = os.getenv("HF_READ_TOKEN")
10
+ headers = {"Authorization": "Bearer {API_TOKEN}"}
11
 
12
 
13
  def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):