Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -125,7 +125,8 @@ def run(input_file, language, decoding_type, history, model_size="300M"):
|
|
| 125 |
gr.Interface(
|
| 126 |
run,
|
| 127 |
inputs=[
|
| 128 |
-
gr.inputs.Audio(source="microphone", type="filepath", label="Record something..."),
|
|
|
|
| 129 |
gr.inputs.Radio(label="Language", choices=LANGUAGES),
|
| 130 |
gr.inputs.Radio(label="Decoding type", choices=["greedy", "LM"]),
|
| 131 |
# gr.inputs.Radio(label="Model size", choices=["300M", "1B"]),
|
|
@@ -145,5 +146,6 @@ gr.Interface(
|
|
| 145 |
""",
|
| 146 |
allow_screenshot=False,
|
| 147 |
allow_flagging="never",
|
| 148 |
-
theme="grass"
|
|
|
|
| 149 |
).launch(enable_queue=True)
|
|
|
|
| 125 |
gr.Interface(
|
| 126 |
run,
|
| 127 |
inputs=[
|
| 128 |
+
#gr.inputs.Audio(source="microphone", type="filepath", label="Record something..."),
|
| 129 |
+
gr.inputs.Audio(source="microphone", type="filepath", label="Record something...", streaming=True),
|
| 130 |
gr.inputs.Radio(label="Language", choices=LANGUAGES),
|
| 131 |
gr.inputs.Radio(label="Decoding type", choices=["greedy", "LM"]),
|
| 132 |
# gr.inputs.Radio(label="Model size", choices=["300M", "1B"]),
|
|
|
|
| 146 |
""",
|
| 147 |
allow_screenshot=False,
|
| 148 |
allow_flagging="never",
|
| 149 |
+
theme="grass",
|
| 150 |
+
live=True # test1
|
| 151 |
).launch(enable_queue=True)
|