EzekielMW commited on
Commit
51413f9
·
verified ·
1 Parent(s): 2894b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -9,12 +9,12 @@ from transformers import T5Tokenizer, T5ForConditionalGeneration
9
  from sentence_transformers import SentenceTransformer
10
 
11
  # -------------------------
12
- # Step 1: Extract PDFs from zip
13
  # -------------------------
14
  def unzip_docs():
15
- if os.path.exists("docs.zip") and not os.path.exists("docs"):
16
- print("🔓 Unzipping docs.zip...")
17
- with zipfile.ZipFile("docs.zip", "r") as zip_ref:
18
  zip_ref.extractall("docs")
19
  print("✅ Extracted to /docs")
20
 
 
9
  from sentence_transformers import SentenceTransformer
10
 
11
  # -------------------------
12
+ # Step 1: Unzip documents.zip if needed
13
  # -------------------------
14
  def unzip_docs():
15
+ if os.path.exists("documents.zip") and not os.path.exists("docs"):
16
+ print("🔓 Unzipping documents.zip...")
17
+ with zipfile.ZipFile("documents.zip", "r") as zip_ref:
18
  zip_ref.extractall("docs")
19
  print("✅ Extracted to /docs")
20