Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,8 @@ summarizer = load_summarization_pipeline()
|
|
| 22 |
|
| 23 |
# Dictionary of Hugging Face PDF URLs grouped by folders
|
| 24 |
# Dictionary of Hugging Face PDF URLs grouped by folders
|
|
|
|
|
|
|
| 25 |
PDF_FOLDERS = {
|
| 26 |
"PPC and Administration": [
|
| 27 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PPC%20and%20Administration"
|
|
@@ -44,6 +46,7 @@ PDF_FOLDERS = {
|
|
| 44 |
}
|
| 45 |
|
| 46 |
|
|
|
|
| 47 |
# Helper function to convert Hugging Face blob URLs to direct download URLs
|
| 48 |
def get_huggingface_raw_url(url):
|
| 49 |
if "huggingface.co" in url and "/blob/" in url:
|
|
|
|
| 22 |
|
| 23 |
# Dictionary of Hugging Face PDF URLs grouped by folders
|
| 24 |
# Dictionary of Hugging Face PDF URLs grouped by folders
|
| 25 |
+
# Dictionary of Hugging Face PDF URLs grouped by folders
|
| 26 |
+
|
| 27 |
PDF_FOLDERS = {
|
| 28 |
"PPC and Administration": [
|
| 29 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PPC%20and%20Administration"
|
|
|
|
| 46 |
}
|
| 47 |
|
| 48 |
|
| 49 |
+
|
| 50 |
# Helper function to convert Hugging Face blob URLs to direct download URLs
|
| 51 |
def get_huggingface_raw_url(url):
|
| 52 |
if "huggingface.co" in url and "/blob/" in url:
|