Nguyen5 commited on
Commit
f57ff46
·
1 Parent(s): b2d8537
Files changed (2) hide show
  1. build_hg_viewer.py +1 -1
  2. load_documents.py +3 -1
build_hg_viewer.py CHANGED
@@ -245,7 +245,7 @@ def build_html_from_db():
245
  Liest alle Paragraphen aus hg_nrw und baut daraus HTML.
246
  """
247
  print(">>> Lade Paragraphen aus Supabase (hg_nrw) …")
248
- #paras = extract_paragraphs()
249
  # 5.12_2:13
250
  res = supabase.table("hg_nrw").select("*").order("order_index").execute()
251
  rows = res.data or []
 
245
  Liest alle Paragraphen aus hg_nrw und baut daraus HTML.
246
  """
247
  print(">>> Lade Paragraphen aus Supabase (hg_nrw) …")
248
+ paras = extract_paragraphs()
249
  # 5.12_2:13
250
  res = supabase.table("hg_nrw").select("*").order("order_index").execute()
251
  rows = res.data or []
load_documents.py CHANGED
@@ -32,7 +32,9 @@ PDF_FILE = "f10_bpo_ifb_tei_mif_wii_2021-01-04.pdf"
32
  PDF_BUCKET = "File PDF"
33
  ENC_BUCKET = urllib.parse.quote(PDF_BUCKET) # "File%20PDF"
34
 
35
- PDF_URL = f"{SUPABASE_URL}/storage/v1/object/public/{PDF_BUCKET}/{PDF_FILE}"
 
 
36
 
37
  # ===== Viewer URL =====
38
  HG_VIEWER_BUCKET = "hg_viewer"
 
32
  PDF_BUCKET = "File PDF"
33
  ENC_BUCKET = urllib.parse.quote(PDF_BUCKET) # "File%20PDF"
34
 
35
+ #PDF_URL = f"{SUPABASE_URL}/storage/v1/object/public/{PDF_BUCKET}/{PDF_FILE}"
36
+ PDF_URL = f"{SUPABASE_URL}/storage/v1/object/public/{ENC_BUCKET}/{PDF_FILE}"
37
+
38
 
39
  # ===== Viewer URL =====
40
  HG_VIEWER_BUCKET = "hg_viewer"