Spaces:
Runtime error
Runtime error
Krishnachaitanya2004
commited on
Commit
·
a2eeab2
1
Parent(s):
fc20d7d
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def main_process(uploaded_file):
|
|
28 |
# Save the uploaded file to the temporary directory
|
29 |
temp_path = os.path.join(temp_dir, file_name)
|
30 |
with open(temp_path, "wb") as temp_file:
|
31 |
-
temp_file.write(uploaded_file
|
32 |
|
33 |
# Process the uploaded file
|
34 |
loader = UnstructuredFileLoader(temp_path)
|
|
|
28 |
# Save the uploaded file to the temporary directory
|
29 |
temp_path = os.path.join(temp_dir, file_name)
|
30 |
with open(temp_path, "wb") as temp_file:
|
31 |
+
temp_file.write(uploaded_file.getvalue())
|
32 |
|
33 |
# Process the uploaded file
|
34 |
loader = UnstructuredFileLoader(temp_path)
|