jiuface commited on
Commit
c5d7876
·
verified ·
1 Parent(s): 78591ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -110,7 +110,7 @@ def upload_video_to_r2(video_file, account_id, access_key, secret_key, bucket_na
110
  aws_secret_access_key=secret_key
111
  )
112
  current_time = datetime.now().strftime("%Y/%m/%d/%H%M%S")
113
- video_remote_path = f"generated_images/{current_time}_{random.randint(0, MAX_SEED)}.mp4"
114
  with open(video_file, "rb") as f: # 修正关键点
115
  s3.upload_fileobj(f, bucket_name, video_remote_path)
116
  print("upload finish", video_remote_path)
 
110
  aws_secret_access_key=secret_key
111
  )
112
  current_time = datetime.now().strftime("%Y/%m/%d/%H%M%S")
113
+ video_remote_path = f"generated_videos/{current_time}_{random.randint(0, MAX_SEED)}.mp4"
114
  with open(video_file, "rb") as f: # 修正关键点
115
  s3.upload_fileobj(f, bucket_name, video_remote_path)
116
  print("upload finish", video_remote_path)