Spaces:
Sleeping
Sleeping
Update player.py
Browse files
player.py
CHANGED
@@ -21,7 +21,7 @@ def find_dataset(author=""):
|
|
21 |
channels.append(space.id)
|
22 |
except Exception:
|
23 |
pass
|
24 |
-
return (gr.Dropdown(label="
|
25 |
|
26 |
def find_dataset_og(author=None):
|
27 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|
@@ -74,8 +74,9 @@ def find_dataset_og(author=None):
|
|
74 |
print(spaces)
|
75 |
return(out_html)
|
76 |
with gr.Blocks() as app:
|
77 |
-
author = gr.Dropdown(
|
78 |
button = gr.Button()
|
79 |
output = gr.HTML()
|
|
|
80 |
button.click(find_dataset,None,author)
|
81 |
app.launch(show_api=False,share=False)
|
|
|
21 |
channels.append(space.id)
|
22 |
except Exception:
|
23 |
pass
|
24 |
+
return (gr.Dropdown(label="Channels", choices=[s for s in channels],interactive=True))
|
25 |
|
26 |
def find_dataset_og(author=None):
|
27 |
s_ist = (api.list_datasets(author=author,search="ai-tube"))
|
|
|
74 |
print(spaces)
|
75 |
return(out_html)
|
76 |
with gr.Blocks() as app:
|
77 |
+
author = gr.Dropdown()
|
78 |
button = gr.Button()
|
79 |
output = gr.HTML()
|
80 |
+
app.load(find_dataset,None,author)
|
81 |
button.click(find_dataset,None,author)
|
82 |
app.launch(show_api=False,share=False)
|