Spaces:
Sleeping
Sleeping
CB commited on
Update streamlit_app.py
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -57,7 +57,7 @@ def _remove_all_videos():
|
|
| 57 |
|
| 58 |
expander = st.sidebar.expander("Options", expanded=True)
|
| 59 |
# ✅ Configure Gemini API
|
| 60 |
-
API_KEY = expander.text_input("Google API Key", "
|
| 61 |
# ✅ Check if API key is available
|
| 62 |
if not API_KEY:
|
| 63 |
expander.error("⚠️")
|
|
@@ -71,7 +71,7 @@ if API_KEY:
|
|
| 71 |
safety_settings = [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "OFF" }, { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "OFF" }, { "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "OFF" }, { "category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "OFF" }, ]
|
| 72 |
|
| 73 |
#Gemini Model
|
| 74 |
-
model_id = expander.text_input("Gemini Model", "gemini-2.0-flash-
|
| 75 |
|
| 76 |
# Analysis prompt
|
| 77 |
analysis_prompt = expander.text_area("Enter analysis")
|
|
|
|
| 57 |
|
| 58 |
expander = st.sidebar.expander("Options", expanded=True)
|
| 59 |
# ✅ Configure Gemini API
|
| 60 |
+
API_KEY = expander.text_input("Google API Key", "AIzaSyBiAW2GQLid0HGe9Vs_ReKwkwsSVNegNzs")
|
| 61 |
# ✅ Check if API key is available
|
| 62 |
if not API_KEY:
|
| 63 |
expander.error("⚠️")
|
|
|
|
| 71 |
safety_settings = [ { "category": "HARM_CATEGORY_HARASSMENT", "threshold": "OFF" }, { "category": "HARM_CATEGORY_HATE_SPEECH", "threshold": "OFF" }, { "category": "HARM_CATEGORY_SEXUALLY_EXPLICIT", "threshold": "OFF" }, { "category": "HARM_CATEGORY_DANGEROUS_CONTENT", "threshold": "OFF" }, ]
|
| 72 |
|
| 73 |
#Gemini Model
|
| 74 |
+
model_id = expander.text_input("Gemini Model", "gemini-2.0-flash-lite")
|
| 75 |
|
| 76 |
# Analysis prompt
|
| 77 |
analysis_prompt = expander.text_area("Enter analysis")
|