mirror of https://github.com/vladmandic/automatic
Added notification.mp3 support
parent
3b6effe4a9
commit
64176bf77d
|
|
@ -27,6 +27,7 @@ venv
|
|||
/*.bat
|
||||
/*.sh
|
||||
/*.txt
|
||||
/notification.mp3
|
||||
!webui.bat
|
||||
!webui.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -1387,6 +1387,9 @@ def create_ui():
|
|||
with gr.TabItem(label, id=ifid, elem_id='tab_' + ifid):
|
||||
interface.render()
|
||||
|
||||
if os.path.exists(os.path.join(script_path, "notification.mp3")):
|
||||
audio_notification = gr.Audio(interactive=False, value=os.path.join(script_path, "notification.mp3"), elem_id="audio_notification", visible=False)
|
||||
|
||||
text_settings = gr.Textbox(elem_id="settings_json", value=lambda: opts.dumpjson(), visible=False)
|
||||
settings_submit.click(
|
||||
fn=wrap_gradio_call(run_settings, extra_outputs=[gr.update()]),
|
||||
|
|
|
|||
Loading…
Reference in New Issue