Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,6 @@ from PIL import Image
|
|
9 |
from io import BytesIO
|
10 |
|
11 |
|
12 |
-
def check_password():
|
13 |
-
expected_password = os.environ.get('PASSWORD') # Hier wird das in Huggingface Secrets gespeicherte Passwort abgerufen
|
14 |
-
user_password = input("Bitte Passwort eingeben: ")
|
15 |
-
if user_password != expected_password:
|
16 |
-
print("Falsches Passwort. Zugriff verweigert.")
|
17 |
-
exit() # Beendet das Programm, wenn das falsche Passwort eingegeben wird
|
18 |
-
|
19 |
-
# Aufruf der Passwortabfrage
|
20 |
-
check_password()
|
21 |
-
|
22 |
class Prodia:
|
23 |
def __init__(self, api_key, base=None):
|
24 |
self.base = base or "https://api.prodia.com/v1"
|
|
|
9 |
from io import BytesIO
|
10 |
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
class Prodia:
|
13 |
def __init__(self, api_key, base=None):
|
14 |
self.base = base or "https://api.prodia.com/v1"
|