Spaces:
Running
Running
Update app.py
Browse files
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,
|
|
|
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):
|