Migjomatic commited on
Commit
de27cb2
Β·
1 Parent(s): a5ab0c0
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -153,13 +153,29 @@ def validate_inputs(video_file, prompt, config, local_models_available):
153
  return False
154
 
155
  return True
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
157
 
158
  def main():
159
  """Main application entry point"""
160
  # Initialize application
161
  initialize_app()
162
-
 
163
  # Load settings and setup models
164
  settings = load_settings()
165
  local_manager, local_models_available = setup_local_models()
 
153
  return False
154
 
155
  return True
156
+ # --- Passwort-Check (aus secrets oder Env) ---
157
+ import os
158
+
159
+ def check_password() -> bool:
160
+ st.sidebar.title("πŸ” Zugriff")
161
+ password = st.sidebar.text_input("Passwort", type="password")
162
+
163
+ if password == "rexhbeqaj": # <-- dein Passwort hier
164
+ st.sidebar.success("Zugang erlaubt βœ…")
165
+ return True
166
+ elif password:
167
+ st.sidebar.error("❌ Falsches Passwort")
168
+ return False
169
+
170
+
171
 
172
 
173
  def main():
174
  """Main application entry point"""
175
  # Initialize application
176
  initialize_app()
177
+ if not check_password():
178
+ st.stop()
179
  # Load settings and setup models
180
  settings = load_settings()
181
  local_manager, local_models_available = setup_local_models()