Spaces:
Sleeping
Sleeping
Saqib
commited on
Update modules/app.py
Browse files- modules/app.py +2 -2
modules/app.py
CHANGED
|
@@ -70,7 +70,7 @@ async def download_file(url: str, suffix: str):
|
|
| 70 |
temp_file.write(await response.read())
|
| 71 |
return temp_file.name
|
| 72 |
|
| 73 |
-
@app.post("/add_audio_to_image
|
| 74 |
async def add_audio_to_image(input_data: AudioImageInput):
|
| 75 |
# Download image and audio files
|
| 76 |
temp_image_path = await download_file(str(input_data.image_url), ".png")
|
|
@@ -100,7 +100,7 @@ async def add_audio_to_image(input_data: AudioImageInput):
|
|
| 100 |
# Return the URL path to the output file
|
| 101 |
return f"/output/{output_filename}"
|
| 102 |
|
| 103 |
-
@app.post("/concatenate_videos
|
| 104 |
async def concatenate_videos(input_data: VideosInput):
|
| 105 |
temp_video_paths = []
|
| 106 |
|
|
|
|
| 70 |
temp_file.write(await response.read())
|
| 71 |
return temp_file.name
|
| 72 |
|
| 73 |
+
@app.post("/add_audio_to_image")
|
| 74 |
async def add_audio_to_image(input_data: AudioImageInput):
|
| 75 |
# Download image and audio files
|
| 76 |
temp_image_path = await download_file(str(input_data.image_url), ".png")
|
|
|
|
| 100 |
# Return the URL path to the output file
|
| 101 |
return f"/output/{output_filename}"
|
| 102 |
|
| 103 |
+
@app.post("/concatenate_videos")
|
| 104 |
async def concatenate_videos(input_data: VideosInput):
|
| 105 |
temp_video_paths = []
|
| 106 |
|