Lenylvt commited on
Commit
98e4f9c
·
verified ·
1 Parent(s): 04ff24d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.read())
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