Spaces:
Runtime error
Runtime error
Commit
·
e0fdf16
1
Parent(s):
739a7b0
Update app.py
Browse files
app.py
CHANGED
|
@@ -70,15 +70,15 @@ def get_audio_plot(filename, chunks):
|
|
| 70 |
|
| 71 |
|
| 72 |
def get_audio_info(audio):
|
| 73 |
-
ts, chunks = get_chunk_times(audio
|
| 74 |
-
p = get_audio_plot(audio
|
| 75 |
return str(ts), p
|
| 76 |
|
| 77 |
otext = gr.outputs.Textbox(type="auto", label="Silence time")
|
| 78 |
|
| 79 |
oplot = gr.outputs.Image(type="plot", label=None)
|
| 80 |
|
| 81 |
-
iaudio = gr.inputs.Audio(source="upload", type="
|
| 82 |
|
| 83 |
#iface = gr.Interface(audio, iaudio, [otext, oplot])
|
| 84 |
|
|
|
|
| 70 |
|
| 71 |
|
| 72 |
def get_audio_info(audio):
|
| 73 |
+
ts, chunks = get_chunk_times(audio, 30, 1)
|
| 74 |
+
p = get_audio_plot(audio, chunks)
|
| 75 |
return str(ts), p
|
| 76 |
|
| 77 |
otext = gr.outputs.Textbox(type="auto", label="Silence time")
|
| 78 |
|
| 79 |
oplot = gr.outputs.Image(type="plot", label=None)
|
| 80 |
|
| 81 |
+
iaudio = gr.inputs.Audio(source="upload", type="filepath", label=None)
|
| 82 |
|
| 83 |
#iface = gr.Interface(audio, iaudio, [otext, oplot])
|
| 84 |
|