tonytz commited on
Commit
db59b72
1 Parent(s): 447969b

Update app.py

Browse files

modifying gradio interface

Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -42,4 +42,14 @@ def get_audio(audio):
42
  res = "Cat Audio"
43
  return res
44
 
45
- iface = gr.Interface(fn=get_audio,inputs=["audio"],outputs=["text"],title="CAT/DOG AUDIO CLASSIFICATION").launch(inline=False)
 
 
 
 
 
 
 
 
 
 
 
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()