ZeeAI1 commited on
Commit
b7a9d20
·
verified ·
1 Parent(s): da49541

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -20,24 +20,30 @@ def load_summarization_pipeline():
20
 
21
  summarizer = load_summarization_pipeline()
22
 
 
23
  # Dictionary of Hugging Face PDF URLs grouped by folders
24
  PDF_FOLDERS = {
25
  "PPC and Administration": [
26
- "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PPC%20and%20Administration",
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:
 
20
 
21
  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"
28
  ],
29
  "IHC": [
30
  "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/IHC"
31
+ ],
32
  "LHC": [
33
  "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/LHC"
34
+ ],
35
  "Lahore High Court Rules and Orders": [
36
  "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/Lahore%20High%20Court%20Rules%20and%20Orders"
37
+ ],
38
  "PHC": [
39
  "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/PHC"
40
+ ],
41
  "SC": [
42
  "https://huggingface.co/spaces/tahirsher/GenAI_Lawyers_Guide/tree/main/SC"
43
+ ]
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: