Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,10 +81,10 @@ def load_model():
|
|
81 |
model, tokenizer = load_model()
|
82 |
|
83 |
def analyze_dna(username, password, sequence):
|
84 |
-
|
85 |
env_password = os.getenv('PASSWORD')
|
86 |
|
87 |
-
if username
|
88 |
return {"error": "Invalid username or password"}, ""
|
89 |
|
90 |
try:
|
|
|
81 |
model, tokenizer = load_model()
|
82 |
|
83 |
def analyze_dna(username, password, sequence):
|
84 |
+
valid_usernames = os.getenv('USERNAMES').split(',')
|
85 |
env_password = os.getenv('PASSWORD')
|
86 |
|
87 |
+
if username not in valid_usernames or password != env_password:
|
88 |
return {"error": "Invalid username or password"}, ""
|
89 |
|
90 |
try:
|