Spaces:
Build error
Build error
HashScripts
commited on
Update gui/ui_tab_asset_library.py
Browse files
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,
|
35 |
-
image_upload = gr.Image(visible=False,
|
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'])),
|