Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,11 @@ import gradio as gr
|
|
3 |
|
4 |
fn.load_model('large-v3')
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
3 |
|
4 |
fn.load_model('large-v3')
|
5 |
|
6 |
+
if __name__ == '__main__':
|
7 |
+
gr.Interface(
|
8 |
+
fn=fn.speech_to_text,
|
9 |
+
inputs=[
|
10 |
+
gr.Audio(sources="upload", type="filepath"),
|
11 |
+
gr.Dropdown(value='large-v3', choices=["tiny", "base", "small", "medium", "large", "large-v2", "large-v3"]),
|
12 |
+
],
|
13 |
+
outputs=["text", "text"]).launch()
|