Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def handle_file(file, **kwargs):
|
|
48 |
# Save the uploaded file temporarily to read it
|
49 |
file_path = file.name
|
50 |
with open(file_path, "wb") as f:
|
51 |
-
f.write(file.
|
52 |
|
53 |
return generate_from_srt(file_path, **kwargs)
|
54 |
|
|
|
48 |
# Save the uploaded file temporarily to read it
|
49 |
file_path = file.name
|
50 |
with open(file_path, "wb") as f:
|
51 |
+
f.write(file.load())
|
52 |
|
53 |
return generate_from_srt(file_path, **kwargs)
|
54 |
|