ngwakomadikwe commited on
Commit
491a534
·
verified ·
1 Parent(s): 67b745e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -21,12 +21,12 @@ import base64
21
  from collections import Counter
22
  import shutil
23
  def login_function(username, password):
24
- if username == "admin" and password == "secret":
25
- return "✅ Login successful!"
26
- else:
27
-
28
- # Create uploads directory
29
- UPLOADS_DIR = "uploads"
30
  if not os.path.exists(UPLOADS_DIR):
31
  os.makedirs(UPLOADS_DIR)
32
 
 
21
  from collections import Counter
22
  import shutil
23
  def login_function(username, password):
24
+ if os.getenv("ENV") == "development":
25
+ UPLOADS_DIR = "dev_uploads"
26
+ MODEL_DIR = "models_dev"
27
+ else:
28
+ UPLOADS_DIR = "uploads"
29
+ MODEL_DIR = "models"
30
  if not os.path.exists(UPLOADS_DIR):
31
  os.makedirs(UPLOADS_DIR)
32