DreamStream-1 commited on
Commit
0357e05
·
verified ·
1 Parent(s): 99d2019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.name, 'rb') as f:
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