Skip to content

Commit

Permalink
Bump version number and minor fix for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
rewbs committed May 15, 2024
1 parent 91df0fa commit 5d63a33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/deforum_helpers/ui_right.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def on_ui_tabs():
# extend paths using sys.path.extend so we can access all of our files and folders
deforum_sys_extend()
# set text above generate button
i1_store_backup = f"<p style=\"text-align:center;font-weight:bold;margin-bottom:0em\">Deforum extension for auto1111 — version 3.0 | Git commit: {get_deforum_version()}</p>"
i1_store_backup = f"<p style=\"text-align:center;font-weight:bold;margin-bottom:0em\">Deforum extension version 3.1, for auto1111 v1.9 | Git commit: {get_deforum_version()}</p>"
i1_store = i1_store_backup

with gr.Blocks(analytics_enabled=False) as deforum_interface:
Expand Down
6 changes: 4 additions & 2 deletions scripts/deforum_helpers/video_audio_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def ffmpeg_stitch_video(ffmpeg_location=None, fps=None, outmp4_path=None, stitch

add_soundtrack_status = None
add_soundtrack_success = None
temp_file = None
if add_soundtrack != 'None':
try:
audio_path = clean_gradio_path_strings(audio_path)
Expand Down Expand Up @@ -280,8 +281,9 @@ def ffmpeg_stitch_video(ffmpeg_location=None, fps=None, outmp4_path=None, stitch
add_soundtrack_status = f"\rError adding audio to video: {e}"
add_soundtrack_success = False
finally:
file_path = Path(temp_file.name)
file_path.unlink(missing_ok=True)
if temp_file:
file_path = Path(temp_file.name)
file_path.unlink(missing_ok=True)

add_srt = opts.data.get("deforum_save_gen_info_as_srt", False) and opts.data.get("deforum_embed_srt", False) and srt_path is not None
add_srt_status = None
Expand Down

0 comments on commit 5d63a33

Please # to comment.