Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ CACHED_MODELS_BY_ID = {}
|
|
10 |
|
11 |
LANGUAGES = sorted(MODELS.keys())
|
12 |
|
13 |
-
def run(input_file, language, decoding_type
|
14 |
|
15 |
#logger.info(f"Running ASR {language}-{model_size}-{decoding_type} for {input_file}")
|
16 |
|
@@ -49,12 +49,11 @@ gr.Interface(
|
|
49 |
inputs=[
|
50 |
gr.Audio(source="microphone", type="filepath", label="Record something..."),
|
51 |
gr.Radio(label="Language", choices=LANGUAGES),
|
52 |
-
gr.Radio(label="Decoding type", choices=["greedy", "LM"])
|
53 |
# gr.inputs.Radio(label="Model size", choices=["300M", "1B"]),
|
54 |
-
"state"
|
55 |
],
|
56 |
outputs=[
|
57 |
-
gr.Textbox
|
58 |
],
|
59 |
allow_screenshot=False,
|
60 |
allow_flagging="never",
|
|
|
10 |
|
11 |
LANGUAGES = sorted(MODELS.keys())
|
12 |
|
13 |
+
def run(input_file, language, decoding_type):
|
14 |
|
15 |
#logger.info(f"Running ASR {language}-{model_size}-{decoding_type} for {input_file}")
|
16 |
|
|
|
49 |
inputs=[
|
50 |
gr.Audio(source="microphone", type="filepath", label="Record something..."),
|
51 |
gr.Radio(label="Language", choices=LANGUAGES),
|
52 |
+
gr.Radio(label="Decoding type", choices=["greedy", "LM"])
|
53 |
# gr.inputs.Radio(label="Model size", choices=["300M", "1B"]),
|
|
|
54 |
],
|
55 |
outputs=[
|
56 |
+
gr.Textbox()
|
57 |
],
|
58 |
allow_screenshot=False,
|
59 |
allow_flagging="never",
|