Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -218,7 +218,7 @@ class AdvancedRAG:
|
|
| 218 |
# Create a new file
|
| 219 |
with tempfile.NamedTemporaryFile(delete=False, suffix=os.path.splitext(file.name)[1]) as tmp:
|
| 220 |
# Write the file content to the temporary file
|
| 221 |
-
with open(file.
|
| 222 |
tmp.write(f.read())
|
| 223 |
tmp.flush()
|
| 224 |
|
|
|
|
| 218 |
# Create a new file
|
| 219 |
with tempfile.NamedTemporaryFile(delete=False, suffix=os.path.splitext(file.name)[1]) as tmp:
|
| 220 |
# Write the file content to the temporary file
|
| 221 |
+
with open(file.path, 'rb') as f:
|
| 222 |
tmp.write(f.read())
|
| 223 |
tmp.flush()
|
| 224 |
|