Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -114,22 +114,10 @@ This is a Gradio Blocks app of <a href="https://github.com/HighCWu/beat-interpol
|
|
114 |
type="filepath",
|
115 |
label="Music"
|
116 |
)
|
117 |
-
# wave example not supported currently
|
118 |
-
# with gr.Row():
|
119 |
-
# example_audios = gr.Dataset(
|
120 |
-
# components=[wave_in],
|
121 |
-
# samples=[['examples/example.mp3']]
|
122 |
-
# )
|
123 |
-
# example_audios.click(
|
124 |
-
# fn=lambda examples: gr.Audio.update(value=examples[0]),
|
125 |
-
# inputs=example_audios,
|
126 |
-
# outputs=example_audios.components
|
127 |
-
# )
|
128 |
with gr.Row():
|
129 |
-
gr.
|
130 |
-
|
131 |
-
|
132 |
-
label='Example'
|
133 |
)
|
134 |
with gr.Row():
|
135 |
seed_in = gr.Number(
|
@@ -179,6 +167,11 @@ This is a Gradio Blocks app of <a href="https://github.com/HighCWu/beat-interpol
|
|
179 |
peak_in
|
180 |
],
|
181 |
outputs=[interpolated_video])
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
gr.Markdown(
|
184 |
'<center><img src="https://visitor-badge.glitch.me/badge?page_id=gradio-blocks.beat-interpolator" alt="visitor badge"/></center>'
|
|
|
114 |
type="filepath",
|
115 |
label="Music"
|
116 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
with gr.Row():
|
118 |
+
example_audios = gr.Dataset(
|
119 |
+
components=[wave_in],
|
120 |
+
samples=[['examples/example.mp3']]
|
|
|
121 |
)
|
122 |
with gr.Row():
|
123 |
seed_in = gr.Number(
|
|
|
167 |
peak_in
|
168 |
],
|
169 |
outputs=[interpolated_video])
|
170 |
+
example_audios.click(
|
171 |
+
fn=lambda examples: gr.Audio.update(value=examples[0]),
|
172 |
+
inputs=example_audios,
|
173 |
+
outputs=example_audios.components
|
174 |
+
)
|
175 |
|
176 |
gr.Markdown(
|
177 |
'<center><img src="https://visitor-badge.glitch.me/badge?page_id=gradio-blocks.beat-interpolator" alt="visitor badge"/></center>'
|