This commit is contained in:
faycal 2025-03-22 01:43:38 +01:00
parent f480b21e58
commit 5bcb12203e
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ jobs:
gcloud functions deploy moneyprinterturbo \
--runtime python310 \
--trigger-http \
--entry-point function \
--entry-point main \
--source function \
--region ${{ secrets.GCP_REGION }} \
--set-env-vars API_URL="${{ secrets.API_URL }}",VIDEO_SUBJECT="${{ vars.VIDEO_SUBJECT }}",VIDEO_DESCRIPTION="${{ vars.VIDEO_DESCRIPTION }}",ACCOUNT_NAME="${{ vars.ACCOUNT_NAME }}",TIME_BEFORE_DOWNLOAD="${{ vars.TIME_BEFORE_DOWNLOAD }}"

View File

@ -28,7 +28,7 @@ song_file_path = "./music.mp3"
bgm_file_path = "../resource/songs/music.mp3"
bgm_volume = 0.2
def function(request):
def main(request):
upload_music_url = f"{api_base_url}/musics"
files = {'file': open(song_file_path, 'rb')}