Skip to content

Commit

Permalink
save audio and vide in tmp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
geovalexis committed Jun 14, 2024
1 parent bae6bf7 commit 181527b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion laia/avatar.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def generate_video(audio_path):
response.raise_for_status()

# Save the response blob as a file
result_file = Path("result_video.mp4")
result_file = Path("/tmp/result_video.mp4")
with open(result_file, "wb") as video_file:
video_file.write(response.content)
logger.info(f"File uploaded successfully. Video saved as '{result_file}'")
Expand Down
2 changes: 1 addition & 1 deletion laia/text2audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def generate_audio(
voice=voice,
model=model,
)
audio_path = Path(f"audio.mp3")
audio_path = Path(f"/tmp/audio.mp3")
save(audio, str(audio_path))
return audio_path

Expand Down

0 comments on commit 181527b

Please sign in to comment.