Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,4 +19,4 @@ def classify(audio):
|
|
| 19 |
pred, idx, prob = learn.predict(img)
|
| 20 |
return dict(zip(categories, map(float, prob)))
|
| 21 |
|
| 22 |
-
gr.Interface(fn=classify, inputs=gr.Audio(source="microphone", type="filepath"), outputs=
|
|
|
|
| 19 |
pred, idx, prob = learn.predict(img)
|
| 20 |
return dict(zip(categories, map(float, prob)))
|
| 21 |
|
| 22 |
+
gr.Interface(fn=classify, inputs=gr.Audio(source="microphone", type="filepath"), outputs="text", title="Identify digits between 0 and 9 from audio clips").launch()
|