Mazenbs commited on
Commit
3da121b
·
verified ·
1 Parent(s): 9605bd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -9,6 +9,8 @@ from parser.assembler import parse_law_from_texts
9
  from supabase_utils import save_law_to_supabase
10
  from helpers.indexer import build_indexed_response
11
  from helpers.indexer_simple import build_indexed
 
 
12
 
13
  app = FastAPI(
14
  title="Text Extractor API",
@@ -152,8 +154,8 @@ async def extract_link_get(
152
  ):
153
  try:
154
  # 1) استخراج النصوص الخام من الرابط
155
- raw_texts = await extract_text_from_url(str(url), timeout)
156
- full = build_indexed(texts=raw_texts)
157
  # 2) بناء القائمة المفهرسة
158
  return raw_texts
159
 
 
9
  from supabase_utils import save_law_to_supabase
10
  from helpers.indexer import build_indexed_response
11
  from helpers.indexer_simple import build_indexed
12
+ from helpers.blocks_all import extract_from_url
13
+
14
 
15
  app = FastAPI(
16
  title="Text Extractor API",
 
154
  ):
155
  try:
156
  # 1) استخراج النصوص الخام من الرابط
157
+ raw_texts = await extract_from_url(str(url), timeout)
158
+ #full = build_indexed(texts=raw_texts)
159
  # 2) بناء القائمة المفهرسة
160
  return raw_texts
161