stevafernandes commited on
Commit
ee0a228
·
verified ·
1 Parent(s): e1cf671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -9,6 +9,10 @@ from pathlib import Path
9
  # --- Get API key from environment variable or user input ---
10
  def get_api_key():
11
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY", "")
 
 
 
 
12
 
13
  # VideoProcessor class
14
  class VideoProcessor:
 
9
  # --- Get API key from environment variable or user input ---
10
  def get_api_key():
11
  GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY", "")
12
+ if not GOOGLE_API_KEY:
13
+ GOOGLE_API_KEY = st.text_input("Enter your Gemini API key", type="password")
14
+ return GOOGLE_API_KEY or "AIzaSyA8TTu9s6fJDG9RlMwOyHFxg270xLgpiyE" # Warning: Hardcoded key
15
+
16
 
17
  # VideoProcessor class
18
  class VideoProcessor: