Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ with st.sidebar:
|
|
| 62 |
uploaded_file = st.file_uploader("Upload PDF", type=["pdf"],key=st.session_state.uploader_key)
|
| 63 |
|
| 64 |
if uploaded_file and uploaded_file.name != st.session_state.processed_file:
|
| 65 |
-
with st.spinner("Partitioning & Embedding Generation (This may take around
|
| 66 |
# Save to temp file for processing
|
| 67 |
temp_path = f"temp_{uploaded_file.name}"
|
| 68 |
with open(temp_path, "wb") as f:
|
|
@@ -121,7 +121,7 @@ with st.sidebar:
|
|
| 121 |
2. Wait for the **"Processed"** success message.
|
| 122 |
3. Ask questions in the chat.
|
| 123 |
4. The system uses **Hybrid Search** (Keyword + Vector) and **Re-ranking** for accuracy.
|
| 124 |
-
5. Always Click on **Clear Chat** to start a fresh
|
| 125 |
"""
|
| 126 |
)
|
| 127 |
|
|
|
|
| 62 |
uploaded_file = st.file_uploader("Upload PDF", type=["pdf"],key=st.session_state.uploader_key)
|
| 63 |
|
| 64 |
if uploaded_file and uploaded_file.name != st.session_state.processed_file:
|
| 65 |
+
with st.spinner("Partitioning & Embedding Generation (This may take around few seconds to few minutes depending upon file size & content)..."):
|
| 66 |
# Save to temp file for processing
|
| 67 |
temp_path = f"temp_{uploaded_file.name}"
|
| 68 |
with open(temp_path, "wb") as f:
|
|
|
|
| 121 |
2. Wait for the **"Processed"** success message.
|
| 122 |
3. Ask questions in the chat.
|
| 123 |
4. The system uses **Hybrid Search** (Keyword + Vector) and **Re-ranking** for accuracy.
|
| 124 |
+
5. Always Click on **Clear Chat** to start a fresh session with a new pdf.
|
| 125 |
"""
|
| 126 |
)
|
| 127 |
|