Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -81,11 +81,16 @@ async def process_analysis_request(request: Request):
|
|
| 81 |
work_path = Path(work_dir)
|
| 82 |
|
| 83 |
form_data = await request.form()
|
|
|
|
|
|
|
| 84 |
all_files: List[UploadFile] = [
|
| 85 |
part for part in form_data.values()
|
| 86 |
if isinstance(part, UploadFile) and part.filename
|
| 87 |
]
|
|
|
|
|
|
|
| 88 |
file_contents = {f.filename: await f.read() for f in all_files}
|
|
|
|
| 89 |
|
| 90 |
# --- Now, perform the proven logic on the filenames ---
|
| 91 |
questions_file_name, attached_file_names = None, []
|
|
|
|
| 81 |
work_path = Path(work_dir)
|
| 82 |
|
| 83 |
form_data = await request.form()
|
| 84 |
+
print("📂 FORM DATA RECEIVED:", form_data)
|
| 85 |
+
|
| 86 |
all_files: List[UploadFile] = [
|
| 87 |
part for part in form_data.values()
|
| 88 |
if isinstance(part, UploadFile) and part.filename
|
| 89 |
]
|
| 90 |
+
print("📂 FILE NAMES RECEIVED:", [f.filename for f in all_files])
|
| 91 |
+
|
| 92 |
file_contents = {f.filename: await f.read() for f in all_files}
|
| 93 |
+
print("📂 FILE CONTENT KEYS:", list(file_contents.keys()))
|
| 94 |
|
| 95 |
# --- Now, perform the proven logic on the filenames ---
|
| 96 |
questions_file_name, attached_file_names = None, []
|