salomonsky commited on
Commit
69bca20
verified
1 Parent(s): 4c0cf37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,6 +15,7 @@ DATA_PATH.mkdir(exist_ok=True)
15
 
16
  PREDEFINED_SEED = random.randint(0, MAX_SEED)
17
 
 
18
  names = ["Admin"]
19
  usernames = ["admin"]
20
  passwords = ["flux33"]
@@ -22,7 +23,8 @@ passwords = ["flux33"]
22
  hashed_passwords = stauth.Hasher(passwords).generate()
23
 
24
  authenticator = stauth.Authenticate(
25
- names, usernames, hashed_passwords, "image_gen", "abcdef", cookie_expiry_days=1
 
26
  )
27
 
28
  async def generate_image(prompt, width, height, seed):
 
15
 
16
  PREDEFINED_SEED = random.randint(0, MAX_SEED)
17
 
18
+ # Configuraci贸n de autenticaci贸n
19
  names = ["Admin"]
20
  usernames = ["admin"]
21
  passwords = ["flux33"]
 
23
  hashed_passwords = stauth.Hasher(passwords).generate()
24
 
25
  authenticator = stauth.Authenticate(
26
+ names=names, usernames=usernames, passwords=hashed_passwords,
27
+ cookie_name="image_gen", key="abcdef", cookie_expiry_days=1
28
  )
29
 
30
  async def generate_image(prompt, width, height, seed):