Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ load_dotenv()
|
|
| 14 |
|
| 15 |
# Page configuration
|
| 16 |
st.set_page_config(
|
| 17 |
-
page_title="Naresh AI - PDF Intelligence",
|
| 18 |
page_icon="📄",
|
| 19 |
layout="wide",
|
| 20 |
)
|
|
@@ -189,7 +189,7 @@ with st.sidebar:
|
|
| 189 |
st.info("High-speed PDF intelligence powered by Groq and FastEmbed.")
|
| 190 |
|
| 191 |
# Header
|
| 192 |
-
st.title("Naresh AI DocuPulse")
|
| 193 |
st.subheader("Challenge B: PDF RAG & Summarization")
|
| 194 |
|
| 195 |
# File Upload
|
|
@@ -211,7 +211,9 @@ if uploaded_file and (st.session_state.pdf_agent is None or uploaded_file.name !
|
|
| 211 |
st.toast("Intelligence Engine Initialized", icon="🧠")
|
| 212 |
|
| 213 |
except Exception as e:
|
| 214 |
-
st.error(f"
|
|
|
|
|
|
|
| 215 |
|
| 216 |
|
| 217 |
# Helper for Exact Backoff
|
|
|
|
| 14 |
|
| 15 |
# Page configuration
|
| 16 |
st.set_page_config(
|
| 17 |
+
page_title="Naresh AI DocuPulse Submission - PDF Intelligence",
|
| 18 |
page_icon="📄",
|
| 19 |
layout="wide",
|
| 20 |
)
|
|
|
|
| 189 |
st.info("High-speed PDF intelligence powered by Groq and FastEmbed.")
|
| 190 |
|
| 191 |
# Header
|
| 192 |
+
st.title("Naresh AI DocuPulse - Submission")
|
| 193 |
st.subheader("Challenge B: PDF RAG & Summarization")
|
| 194 |
|
| 195 |
# File Upload
|
|
|
|
| 211 |
st.toast("Intelligence Engine Initialized", icon="🧠")
|
| 212 |
|
| 213 |
except Exception as e:
|
| 214 |
+
st.error(f"Critical Ingestion Error: {e}")
|
| 215 |
+
with st.expander("Show Traceback"):
|
| 216 |
+
st.code(traceback.format_exc())
|
| 217 |
|
| 218 |
|
| 219 |
# Helper for Exact Backoff
|