Spaces:
Build error
Build error
Paul Ke commited on
Update streamlit_app.py
Browse files- streamlit_app.py +2 -2
streamlit_app.py
CHANGED
|
@@ -59,7 +59,7 @@ def _remove_all_videos():
|
|
| 59 |
|
| 60 |
expander = st.sidebar.expander("Options", expanded=True)
|
| 61 |
#API KEY
|
| 62 |
-
API_KEY = expander.text_input("Google API Key", "AIzaSyB2uDj6IeuNszSuk80feW-
|
| 63 |
if API_KEY:
|
| 64 |
genai.configure(api_key=API_KEY)
|
| 65 |
|
|
@@ -67,7 +67,7 @@ if API_KEY:
|
|
| 67 |
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" }, ]
|
| 68 |
|
| 69 |
#Gemini Model
|
| 70 |
-
model_id = expander.text_input("Gemini Model", "gemini-2.0-flash-exp")
|
| 71 |
|
| 72 |
# Analysis prompt
|
| 73 |
analysis_prompt = expander.text_area("Enter analysis")
|
|
|
|
| 59 |
|
| 60 |
expander = st.sidebar.expander("Options", expanded=True)
|
| 61 |
#API KEY
|
| 62 |
+
API_KEY = expander.text_input("Google API Key", "AIzaSyB2uDj6IeuNszSuk80feW-eBgpIDH0WFSX")
|
| 63 |
if API_KEY:
|
| 64 |
genai.configure(api_key=API_KEY)
|
| 65 |
|
|
|
|
| 67 |
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" }, ]
|
| 68 |
|
| 69 |
#Gemini Model
|
| 70 |
+
model_id = expander.text_input("Gemini Model", "gemini-2.0-flash-thinking-exp")
|
| 71 |
|
| 72 |
# Analysis prompt
|
| 73 |
analysis_prompt = expander.text_area("Enter analysis")
|