Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ if uploaded_file and st.button("Analyze"):
|
|
51 |
with st.spinner("Processing..."):
|
52 |
try:
|
53 |
images = convert_from_bytes(uploaded_file.read(), dpi=300) # Increased DPI
|
54 |
-
client = genai.Client(api_key=os.getenv("
|
55 |
|
56 |
for idx, image in enumerate(images):
|
57 |
with st.expander(f"Page {idx+1}", expanded=True):
|
|
|
51 |
with st.spinner("Processing..."):
|
52 |
try:
|
53 |
images = convert_from_bytes(uploaded_file.read(), dpi=300) # Increased DPI
|
54 |
+
client = genai.Client(api_key=os.getenv("KEY")) # Verify env var name
|
55 |
|
56 |
for idx, image in enumerate(images):
|
57 |
with st.expander(f"Page {idx+1}", expanded=True):
|