Spaces:
Sleeping
Sleeping
Update app.py
#2
by
wahab5763
- opened
app.py
CHANGED
|
@@ -27,17 +27,22 @@ PDF_FOLDERS = {
|
|
| 27 |
],
|
| 28 |
"IHC": [
|
| 29 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/IHC"
|
|
|
|
| 30 |
"LHC": [
|
| 31 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/LHC"
|
|
|
|
| 32 |
"Lahore High Court Rules and Orders": [
|
| 33 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/Lahore%20High%20Court%20Rules%20and%20Orders"
|
|
|
|
| 34 |
"PHC": [
|
| 35 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PHC"
|
|
|
|
| 36 |
"SC": [
|
| 37 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/SC"
|
| 38 |
],
|
| 39 |
}
|
| 40 |
|
|
|
|
| 41 |
# Helper function to convert Hugging Face blob URLs to direct download URLs
|
| 42 |
def get_huggingface_raw_url(url):
|
| 43 |
if "huggingface.co" in url and "/blob/" in url:
|
|
|
|
| 27 |
],
|
| 28 |
"IHC": [
|
| 29 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/IHC"
|
| 30 |
+
], # Missing comma added
|
| 31 |
"LHC": [
|
| 32 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/LHC"
|
| 33 |
+
], # Missing comma added
|
| 34 |
"Lahore High Court Rules and Orders": [
|
| 35 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/Lahore%20High%20Court%20Rules%20and%20Orders"
|
| 36 |
+
], # Missing comma added
|
| 37 |
"PHC": [
|
| 38 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PHC"
|
| 39 |
+
], # Missing comma added
|
| 40 |
"SC": [
|
| 41 |
"https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/SC"
|
| 42 |
],
|
| 43 |
}
|
| 44 |
|
| 45 |
+
|
| 46 |
# Helper function to convert Hugging Face blob URLs to direct download URLs
|
| 47 |
def get_huggingface_raw_url(url):
|
| 48 |
if "huggingface.co" in url and "/blob/" in url:
|