Spaces:
Runtime error
Runtime error
Update app.py
Browse filesmodifying gradio interface
app.py
CHANGED
|
@@ -42,4 +42,14 @@ def get_audio(audio):
|
|
| 42 |
res = "Cat Audio"
|
| 43 |
return res
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
res = "Cat Audio"
|
| 43 |
return res
|
| 44 |
|
| 45 |
+
|
| 46 |
+
# %gradio interface
|
| 47 |
+
|
| 48 |
+
inputs = gr.inputs.Audio(label="Input Audio", type="file")
|
| 49 |
+
outputs = "text"
|
| 50 |
+
title = "Cat/Dog Audio Classification"
|
| 51 |
+
description = "Gradio demo App for Cat and Dog Audio Classification with Tensorflow. To use it, simply upload your audio .wav format, or use sample audio by click the button below Example"
|
| 52 |
+
examples = [
|
| 53 |
+
['dog_barking_102.wav']
|
| 54 |
+
]
|
| 55 |
+
gr.Interface(get_audio, inputs, outputs, title=title, description=description, examples=examples).launch()
|