Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def convert_image_ffmpeg(image, target_format):
|
|
42 |
image_path = os.path.join(temp_dir, f"{sanitized_base_name}.png") # Saving as mp4 by default for now
|
43 |
|
44 |
# Nama file keluaran dengan awalan yang diinginkan
|
45 |
-
output_file = f"flowly_ai_image_converter_{
|
46 |
|
47 |
with open(image_path, "wb") as f:
|
48 |
f.write(image.getbuffer()) # Save the uploaded video to a local file
|
|
|
42 |
image_path = os.path.join(temp_dir, f"{sanitized_base_name}.png") # Saving as mp4 by default for now
|
43 |
|
44 |
# Nama file keluaran dengan awalan yang diinginkan
|
45 |
+
output_file = f"flowly_ai_image_converter_{sanitized_base_name}.{target_format.lower()}"
|
46 |
|
47 |
with open(image_path, "wb") as f:
|
48 |
f.write(image.getbuffer()) # Save the uploaded video to a local file
|