denizaybey commited on
Commit
d80b5d4
·
1 Parent(s): a8cbedf

Remove redundant `bsodtv_storage.commit` call in audio upload process.

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -50,7 +50,6 @@ def process_audio(original_audio_path, dubbed_audio_path, email, company_name, t
50
  with bsodtv_storage.batch_upload() as batch:
51
  batch.put_file(original_audio_path, "/{}/original_audio.wav".format(processing_id))
52
  batch.put_file(dubbed_audio_path, "/{}/dubbed_audio.wav".format(processing_id))
53
- bsodtv_storage.commit()
54
  except Exception as e:
55
  logger.error(f"Error uploading audio files to Modal Storage: {e}")
56
  return "Error uploading audio files to Cloud Storage."
 
50
  with bsodtv_storage.batch_upload() as batch:
51
  batch.put_file(original_audio_path, "/{}/original_audio.wav".format(processing_id))
52
  batch.put_file(dubbed_audio_path, "/{}/dubbed_audio.wav".format(processing_id))
 
53
  except Exception as e:
54
  logger.error(f"Error uploading audio files to Modal Storage: {e}")
55
  return "Error uploading audio files to Cloud Storage."