HashScripts commited on
Commit
5773816
·
verified ·
1 Parent(s): 20ae1f7

Update gui/ui_tab_asset_library.py

Browse files
Files changed (1) hide show
  1. gui/ui_tab_asset_library.py +2 -2
gui/ui_tab_asset_library.py CHANGED
@@ -31,8 +31,8 @@ class AssetLibrary(AbstractComponentUI):
31
  local_upload_name = gr.Textbox(label="Name (required)")
32
  upload_type = gr.Radio([AssetType.BACKGROUND_VIDEO.value, AssetType.BACKGROUND_MUSIC.value, AssetType.IMAGE.value], value="background video", interactive=True, label="Type")
33
  video_upload = gr.Video(visible=True, sources=["upload"], interactive=True)
34
- audio_upload = gr.Audio(visible=False, source="upload", type="filepath", interactive=True)
35
- image_upload = gr.Image(visible=False, source="upload", type="filepath", interactive=True)
36
  upload_button = gr.Button("ADD")
37
  upload_type.change(lambda x: (gr.update(visible='video' in x),
38
  gr.update(visible=any(type in x for type in ['audio', 'music'])),
 
31
  local_upload_name = gr.Textbox(label="Name (required)")
32
  upload_type = gr.Radio([AssetType.BACKGROUND_VIDEO.value, AssetType.BACKGROUND_MUSIC.value, AssetType.IMAGE.value], value="background video", interactive=True, label="Type")
33
  video_upload = gr.Video(visible=True, sources=["upload"], interactive=True)
34
+ audio_upload = gr.Audio(visible=False, sources=["upload"], type="filepath", interactive=True)
35
+ image_upload = gr.Image(visible=False, sources=["upload"], type="filepath", interactive=True)
36
  upload_button = gr.Button("ADD")
37
  upload_type.change(lambda x: (gr.update(visible='video' in x),
38
  gr.update(visible=any(type in x for type in ['audio', 'music'])),