mawairon commited on
Commit
c214f12
·
verified ·
1 Parent(s): 5935bca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,10 +81,10 @@ def load_model():
81
  model, tokenizer = load_model()
82
 
83
  def analyze_dna(username, password, sequence):
84
- env_username = os.getenv('USERNAME')
85
  env_password = os.getenv('PASSWORD')
86
 
87
- if username != env_username or password != env_password:
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: