Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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, "
|
| 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)
|