Dobin Yim commited on
Commit
0517785
·
1 Parent(s): 168b755

fixed temp dir

Browse files
Files changed (1) hide show
  1. final.py +1 -1
final.py CHANGED
@@ -11,7 +11,6 @@ import sys
11
  import os
12
  import re
13
  import zipfile
14
- import tempfile
15
  from typing import List, Dict, Tuple
16
  from dotenv import load_dotenv
17
  from langchain_community.document_loaders import PyMuPDFLoader
@@ -46,6 +45,7 @@ TEMP_DIR = "./temp"
46
 
47
  # Ensure the upload folder exists
48
  os.makedirs(UPLOAD_FOLDER, exist_ok=True)
 
49
 
50
  def unzip_file(file_path: str, output_dir: str):
51
  with zipfile.ZipFile(file_path, 'r') as zip_ref:
 
11
  import os
12
  import re
13
  import zipfile
 
14
  from typing import List, Dict, Tuple
15
  from dotenv import load_dotenv
16
  from langchain_community.document_loaders import PyMuPDFLoader
 
45
 
46
  # Ensure the upload folder exists
47
  os.makedirs(UPLOAD_FOLDER, exist_ok=True)
48
+ os.makedirs(TEMP_DIR, exist_ok=True)
49
 
50
  def unzip_file(file_path: str, output_dir: str):
51
  with zipfile.ZipFile(file_path, 'r') as zip_ref: