updated for latest gradio version
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ def inference(audio):
|
|
64 |
return "\n".join(total_prediction) + "\n\n" + ' '.join(words)
|
65 |
|
66 |
|
67 |
-
inputs = gr.
|
68 |
-
outputs =
|
69 |
title = model_name
|
70 |
description = f"Gradio demo for a {model_name}. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below. Currently supports .wav 16_000hz files, max duration of {max_seconds} sec"
|
71 |
article = "<p style='text-align: center'><a href='https://github.com/GrosyT/GrosyT.github.io' target='_blank'> Github repo</a> | <a href='<HF Space link>' target='_blank'>Pretrained model</a> </p>"
|
|
|
64 |
return "\n".join(total_prediction) + "\n\n" + ' '.join(words)
|
65 |
|
66 |
|
67 |
+
inputs = gr.Audio(label="Input Audio", sources="microphone", type="filepath")
|
68 |
+
outputs = "text"
|
69 |
title = model_name
|
70 |
description = f"Gradio demo for a {model_name}. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below. Currently supports .wav 16_000hz files, max duration of {max_seconds} sec"
|
71 |
article = "<p style='text-align: center'><a href='https://github.com/GrosyT/GrosyT.github.io' target='_blank'> Github repo</a> | <a href='<HF Space link>' target='_blank'>Pretrained model</a> </p>"
|