denizaybey commited on
Commit
7952a07
·
2 Parent(s): 4978e06 d80b5d4

Merge branch 'modal-integration-fix' into 'main'

Browse files

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

See merge request sonne-technology/bsod-tv/waveform-matching-gradio-front-end!17

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."