skullsquadron commited on
Commit
4bff9ce
·
verified ·
1 Parent(s): 6635f62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def process_file(file: AskFileResponse):
51
 
52
  with tempfile.NamedTemporaryFile(mode="w", delete=False) as tempfile:
53
  with open(tempfile.name, "wb") as f:
54
- with open(file.path, "r") as sourcefile:
55
  # Read the contents of the file
56
  content = sourcefile.read()
57
  f.write(file.content)
 
51
 
52
  with tempfile.NamedTemporaryFile(mode="w", delete=False) as tempfile:
53
  with open(tempfile.name, "wb") as f:
54
+ with open(file.path, "rb") as sourcefile:
55
  # Read the contents of the file
56
  content = sourcefile.read()
57
  f.write(file.content)