Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,6 @@ def predict(path):
|
|
29 |
probs = model(audio, torch.tensor(audio.shape[0] * [audio.shape[-1]], device=audio.device))[0]
|
30 |
return convert_probs(probs)
|
31 |
|
32 |
-
|
33 |
inputs=[gr.inputs.Audio(source='microphone', type='filepath', optional=True)],
|
34 |
outputs= 'text').launch(debug=True)
|
|
|
29 |
probs = model(audio, torch.tensor(audio.shape[0] * [audio.shape[-1]], device=audio.device))[0]
|
30 |
return convert_probs(probs)
|
31 |
|
32 |
+
gr.Interface(fn=predict,
|
33 |
inputs=[gr.inputs.Audio(source='microphone', type='filepath', optional=True)],
|
34 |
outputs= 'text').launch(debug=True)
|