Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,12 @@ def process_resumes(job_description, uploaded_files):
|
|
16 |
resume_texts = []
|
17 |
|
18 |
for uploaded_file in uploaded_files:
|
19 |
-
filename = os.path.basename(uploaded_file)
|
20 |
ext = filename.lower().split(".")[-1]
|
21 |
|
22 |
# Copying the file from Gradio temp folder to uploads folder
|
23 |
file_path = os.path.join(UPLOAD_FOLDER, filename)
|
24 |
-
shutil.copy(uploaded_file, file_path)
|
25 |
|
26 |
if ext == "txt":
|
27 |
with open(file_path, "r", encoding="utf-8") as f:
|
|
|
16 |
resume_texts = []
|
17 |
|
18 |
for uploaded_file in uploaded_files:
|
19 |
+
filename = os.path.basename(uploaded_file.name)
|
20 |
ext = filename.lower().split(".")[-1]
|
21 |
|
22 |
# Copying the file from Gradio temp folder to uploads folder
|
23 |
file_path = os.path.join(UPLOAD_FOLDER, filename)
|
24 |
+
shutil.copy(uploaded_file.name, file_path)
|
25 |
|
26 |
if ext == "txt":
|
27 |
with open(file_path, "r", encoding="utf-8") as f:
|