Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,12 +81,7 @@ Please apply this analysis to the entire set of documents provided.
|
|
81 |
|
82 |
# Sidebar Configuration
|
83 |
with st.sidebar:
|
84 |
-
|
85 |
-
api_key = st.text_input(
|
86 |
-
"Enter Gemini API Key:",
|
87 |
-
type="password",
|
88 |
-
value=os.getenv("GEMINI_API_KEY", "")
|
89 |
-
)
|
90 |
if api_key:
|
91 |
configure_gemini(api_key)
|
92 |
|
@@ -129,7 +124,7 @@ if uploaded_files and api_key:
|
|
129 |
raw_response = analyze_pdf_directly(
|
130 |
pdf_bytes=uploaded_file.getvalue(),
|
131 |
prompt=PROMPT,
|
132 |
-
model_name="gemini-
|
133 |
)
|
134 |
|
135 |
# Process response
|
|
|
81 |
|
82 |
# Sidebar Configuration
|
83 |
with st.sidebar:
|
84 |
+
api_key = os.getenv("GEMINI_API_KEY", "")
|
|
|
|
|
|
|
|
|
|
|
85 |
if api_key:
|
86 |
configure_gemini(api_key)
|
87 |
|
|
|
124 |
raw_response = analyze_pdf_directly(
|
125 |
pdf_bytes=uploaded_file.getvalue(),
|
126 |
prompt=PROMPT,
|
127 |
+
model_name="gemini-2.5-pro-exp-03-25" # or "gemini-1.5-flash"
|
128 |
)
|
129 |
|
130 |
# Process response
|