HighCWu commited on
Commit
dc9bd86
1 Parent(s): d72a6e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -8
app.py CHANGED
@@ -114,10 +114,22 @@ This is a Gradio Blocks app of <a href="https://github.com/HighCWu/beat-interpol
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,11 +179,6 @@ This is a Gradio Blocks app of <a href="https://github.com/HighCWu/beat-interpol
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>'
 
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.File(
130
+ value='examples/example.mp3',
131
+ interactive=False,
132
+ label='Example'
133
  )
134
  with gr.Row():
135
  seed_in = gr.Number(
 
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>'