Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def convert_video(video_file, quality, aspect_ratio, video_url):
|
|
| 125 |
print("Upload " + Path(path).stem + " to AWS")
|
| 126 |
# fs.mv(str(output_dir / f"{output_path.stem}_%03d.ts"), f"s3://{AWS_S3_BUCKET}/{Path(path).stem}",)
|
| 127 |
with fs.open(f"s3://{AWS_S3_BUCKET}/{Path(path).stem}", 'wb') as file:
|
| 128 |
-
file.write(
|
| 129 |
|
| 130 |
output_html = "<br>".join(output_links)
|
| 131 |
return output_html
|
|
|
|
| 125 |
print("Upload " + Path(path).stem + " to AWS")
|
| 126 |
# fs.mv(str(output_dir / f"{output_path.stem}_%03d.ts"), f"s3://{AWS_S3_BUCKET}/{Path(path).stem}",)
|
| 127 |
with fs.open(f"s3://{AWS_S3_BUCKET}/{Path(path).stem}", 'wb') as file:
|
| 128 |
+
file.write(file_content)
|
| 129 |
|
| 130 |
output_html = "<br>".join(output_links)
|
| 131 |
return output_html
|