Skip to content

Commit 5d63a33

Browse files
committed
Bump version number and minor fix for audio
1 parent 91df0fa commit 5d63a33

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/deforum_helpers/ui_right.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def on_ui_tabs():
2929
# extend paths using sys.path.extend so we can access all of our files and folders
3030
deforum_sys_extend()
3131
# set text above generate button
32-
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>"
32+
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>"
3333
i1_store = i1_store_backup
3434

3535
with gr.Blocks(analytics_enabled=False) as deforum_interface:

scripts/deforum_helpers/video_audio_utilities.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ def ffmpeg_stitch_video(ffmpeg_location=None, fps=None, outmp4_path=None, stitch
239239

240240
add_soundtrack_status = None
241241
add_soundtrack_success = None
242+
temp_file = None
242243
if add_soundtrack != 'None':
243244
try:
244245
audio_path = clean_gradio_path_strings(audio_path)
@@ -280,8 +281,9 @@ def ffmpeg_stitch_video(ffmpeg_location=None, fps=None, outmp4_path=None, stitch
280281
add_soundtrack_status = f"\rError adding audio to video: {e}"
281282
add_soundtrack_success = False
282283
finally:
283-
file_path = Path(temp_file.name)
284-
file_path.unlink(missing_ok=True)
284+
if temp_file:
285+
file_path = Path(temp_file.name)
286+
file_path.unlink(missing_ok=True)
285287

286288
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
287289
add_srt_status = None

0 commit comments

Comments
 (0)