Spaces:
Build error
Build error
HashScripts
commited on
Commit
•
20ae1f7
1
Parent(s):
515ea86
Update gui/ui_tab_asset_library.py
Browse files
gui/ui_tab_asset_library.py
CHANGED
@@ -30,7 +30,7 @@ class AssetLibrary(AbstractComponentUI):
|
|
30 |
with gr.Column(visible=False) as localFileFlow:
|
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,
|
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")
|
|
|
30 |
with gr.Column(visible=False) as localFileFlow:
|
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")
|