Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ 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 "
|
| 15 |
|
| 16 |
# VideoProcessor class
|
| 17 |
class VideoProcessor:
|
|
@@ -57,8 +57,8 @@ if "video_name" not in st.session_state:
|
|
| 57 |
|
| 58 |
# Main app function
|
| 59 |
def main():
|
| 60 |
-
st.set_page_config(page_title="Video Retrieval-Augmented Generation", page_icon="
|
| 61 |
-
st.header("
|
| 62 |
st.markdown("---")
|
| 63 |
|
| 64 |
# Step 1: API Key input
|
|
|
|
| 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 "AIzaSyChkOeyjQb4wkjMfgROQKAkPIxP0GFpqqc" # Warning: Hardcoded key
|
| 15 |
|
| 16 |
# VideoProcessor class
|
| 17 |
class VideoProcessor:
|
|
|
|
| 57 |
|
| 58 |
# Main app function
|
| 59 |
def main():
|
| 60 |
+
st.set_page_config(page_title="Video Retrieval-Augmented Generation", page_icon="", layout="wide")
|
| 61 |
+
st.header("Video Retrieval-Augmented Generation - Gemini 2.0")
|
| 62 |
st.markdown("---")
|
| 63 |
|
| 64 |
# Step 1: API Key input
|