Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ st.markdown("""
|
|
| 37 |
<style>
|
| 38 |
/* 1. GLOBAL RESET & SCROLL LOCK */
|
| 39 |
html, body {
|
| 40 |
-
overflow: hidden;
|
| 41 |
height: 100%;
|
| 42 |
margin: 0;
|
| 43 |
}
|
|
@@ -57,10 +57,9 @@ footer {
|
|
| 57 |
left: 0;
|
| 58 |
height: 100vh;
|
| 59 |
width: 20rem;
|
| 60 |
-
overflow-y: auto !important;
|
| 61 |
z-index: 99999;
|
| 62 |
}
|
| 63 |
-
/* Optional: Custom scrollbar for sidebar */
|
| 64 |
[data-testid="stSidebar"]::-webkit-scrollbar {
|
| 65 |
width: 6px;
|
| 66 |
}
|
|
@@ -89,7 +88,7 @@ footer {
|
|
| 89 |
.main .block-container {
|
| 90 |
margin-top: 6rem;
|
| 91 |
height: calc(100vh - 6rem);
|
| 92 |
-
overflow-y: auto;
|
| 93 |
padding-top: 1rem;
|
| 94 |
padding-bottom: 5rem;
|
| 95 |
}
|
|
@@ -109,16 +108,13 @@ footer {
|
|
| 109 |
margin-bottom: 6px;
|
| 110 |
}
|
| 111 |
|
| 112 |
-
/* 7. HIDE UPLOADED FILE LIST
|
| 113 |
-
/* This targets the specific row showing the uploaded file name */
|
| 114 |
[data-testid='stFileUploaderFile'] {
|
| 115 |
display: none;
|
| 116 |
}
|
| 117 |
-
/* This targets the list container in some versions */
|
| 118 |
section[data-testid="stFileUploader"] ul {
|
| 119 |
display: none;
|
| 120 |
}
|
| 121 |
-
/* Hides small text like 'Limit 200MB' if you want a cleaner look */
|
| 122 |
section[data-testid="stFileUploader"] small {
|
| 123 |
display: none;
|
| 124 |
}
|
|
@@ -301,7 +297,8 @@ with st.sidebar:
|
|
| 301 |
chunks = process_pdf(uploaded)
|
| 302 |
if chunks:
|
| 303 |
st.session_state.uploaded_file_name = uploaded.name
|
| 304 |
-
|
|
|
|
| 305 |
else:
|
| 306 |
st.error("❌ Failed.")
|
| 307 |
else:
|
|
|
|
| 37 |
<style>
|
| 38 |
/* 1. GLOBAL RESET & SCROLL LOCK */
|
| 39 |
html, body {
|
| 40 |
+
overflow: hidden;
|
| 41 |
height: 100%;
|
| 42 |
margin: 0;
|
| 43 |
}
|
|
|
|
| 57 |
left: 0;
|
| 58 |
height: 100vh;
|
| 59 |
width: 20rem;
|
| 60 |
+
overflow-y: auto !important;
|
| 61 |
z-index: 99999;
|
| 62 |
}
|
|
|
|
| 63 |
[data-testid="stSidebar"]::-webkit-scrollbar {
|
| 64 |
width: 6px;
|
| 65 |
}
|
|
|
|
| 88 |
.main .block-container {
|
| 89 |
margin-top: 6rem;
|
| 90 |
height: calc(100vh - 6rem);
|
| 91 |
+
overflow-y: auto;
|
| 92 |
padding-top: 1rem;
|
| 93 |
padding-bottom: 5rem;
|
| 94 |
}
|
|
|
|
| 108 |
margin-bottom: 6px;
|
| 109 |
}
|
| 110 |
|
| 111 |
+
/* 7. HIDE UPLOADED FILE LIST & NAME BELOW BOX */
|
|
|
|
| 112 |
[data-testid='stFileUploaderFile'] {
|
| 113 |
display: none;
|
| 114 |
}
|
|
|
|
| 115 |
section[data-testid="stFileUploader"] ul {
|
| 116 |
display: none;
|
| 117 |
}
|
|
|
|
| 118 |
section[data-testid="stFileUploader"] small {
|
| 119 |
display: none;
|
| 120 |
}
|
|
|
|
| 297 |
chunks = process_pdf(uploaded)
|
| 298 |
if chunks:
|
| 299 |
st.session_state.uploaded_file_name = uploaded.name
|
| 300 |
+
# CHANGED: Simple message without chunk count
|
| 301 |
+
st.success("✅ PDF Processed!")
|
| 302 |
else:
|
| 303 |
st.error("❌ Failed.")
|
| 304 |
else:
|