Spaces:
Runtime error
Runtime error
Commit ·
31b654e
1
Parent(s): 44729c9
Fix audio file naming and update dependency version
Browse files- Correct `dubbed_audio.wav` file path in `batch.put_file` method.
- Pin `modal` to version `1.0.4` in `requirements.txt`.
- Add app initialization with `modal.App`.
Files changed (2)
- app.py+2-1
- requirements.txt+2-2
18 unmodified lines1920212223242520 unmodified lines464748484950515218 unmodified lines file upload to presigned URLs, and triggering the processing. """ # 1. Check the duration of both audio files. app = modal.App("Waveform-Matching") modal_token_id = os.environ['MODAL_TOKEN_ID'] modal_token_secret = os.environ['MODAL_TOKEN_SECRET'] modal_environment = os.environ['MODAL_ENVIRONMENT']20 unmodified lines bsodtv_storage = modal.Volume.from_name(modal_volume) with bsodtv_storage.batch_upload() as batch: batch.put_file(original_audio_path, "/{}/original_audio.wav".format(processing_id)) batch.put_file(dubbed_audio_path, "/{}/original_audio.wav".format(processing_id)) batch.put_file(dubbed_audio_path, "/{}/dubbed_audio.wav".format(processing_id)) bsodtv_storage.commit() except: return "Error uploading audio files to Cloud Storage."1212modalgradiomodal==1.0.4gradioapp.py+2-1
requirements.txt+2-2