Spaces:
Running
Running
updated pdf in app.py
Browse files- .gitattributes +1 -0
- src/app.py +3 -2
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
src/app.py
CHANGED
|
@@ -57,7 +57,7 @@ with st.sidebar:
|
|
| 57 |
# Select a sample PDF
|
| 58 |
sample_pdf = st.selectbox(
|
| 59 |
"Or pick a sample PDF:",
|
| 60 |
-
["None", "Attention is All You Need", "
|
| 61 |
)
|
| 62 |
|
| 63 |
# Ensure only one PDF is uploaded at a time
|
|
@@ -68,8 +68,9 @@ with st.sidebar:
|
|
| 68 |
elif sample_pdf != "None":
|
| 69 |
sample_map = {
|
| 70 |
"Attention is All You Need": "sample_pdf/Attention_is_all_you_need.pdf",
|
| 71 |
-
"
|
| 72 |
"WHO 2025 Report":"sample_pdf/WHO_2025.pdf",
|
|
|
|
| 73 |
}
|
| 74 |
# Using a variable and closing after use
|
| 75 |
sample_path = sample_map.get(sample_pdf)
|
|
|
|
| 57 |
# Select a sample PDF
|
| 58 |
sample_pdf = st.selectbox(
|
| 59 |
"Or pick a sample PDF:",
|
| 60 |
+
["None", "Attention is All You Need", "2025_ICC_Champions_Trophy-Wikipedia.pdf"]
|
| 61 |
)
|
| 62 |
|
| 63 |
# Ensure only one PDF is uploaded at a time
|
|
|
|
| 68 |
elif sample_pdf != "None":
|
| 69 |
sample_map = {
|
| 70 |
"Attention is All You Need": "sample_pdf/Attention_is_all_you_need.pdf",
|
| 71 |
+
"2025_ICC_Champions_Trophy-Wikipedia.pdf":"src\sample_pdf\2025_ICC_Champions_Trophy-Wikipedia.pdf",
|
| 72 |
"WHO 2025 Report":"sample_pdf/WHO_2025.pdf",
|
| 73 |
+
"World Bank Annual Report 2024": "sample_pdf/World_Bank_Annual_Report_2024.pdf"
|
| 74 |
}
|
| 75 |
# Using a variable and closing after use
|
| 76 |
sample_path = sample_map.get(sample_pdf)
|