Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def parse_transcription(logits):
|
|
36 |
predicted_ids = torch.argmax(logits, dim=-1)
|
37 |
transcription = processor.decode(predicted_ids[0], skip_special_tokens=True)
|
38 |
return transcription
|
39 |
-
|
40 |
def parse(wav_file, applyLM):
|
41 |
input_values = read_file_and_process(wav_file)
|
42 |
with torch.no_grad():
|
@@ -59,9 +59,9 @@ txtbox = gr.Textbox(
|
|
59 |
label="Output from model will appear here:",
|
60 |
lines=5
|
61 |
)
|
62 |
-
chkbox = gr.Checkbox(label="Apply LM", value=False)
|
63 |
-
|
64 |
|
65 |
-
gr.Interface(parse, inputs = [input_
|
66 |
streaming=True, interactive=True,
|
67 |
analytics_enabled=False, show_tips=False, enable_queue=True).launch(inline=False);
|
|
|
36 |
predicted_ids = torch.argmax(logits, dim=-1)
|
37 |
transcription = processor.decode(predicted_ids[0], skip_special_tokens=True)
|
38 |
return transcription
|
39 |
+
#
|
40 |
def parse(wav_file, applyLM):
|
41 |
input_values = read_file_and_process(wav_file)
|
42 |
with torch.no_grad():
|
|
|
59 |
label="Output from model will appear here:",
|
60 |
lines=5
|
61 |
)
|
62 |
+
#chkbox = gr.Checkbox(label="Apply LM", value=False)
|
63 |
+
#, chkbox
|
64 |
|
65 |
+
gr.Interface(parse, inputs = [input_], outputs=txtbox,
|
66 |
streaming=True, interactive=True,
|
67 |
analytics_enabled=False, show_tips=False, enable_queue=True).launch(inline=False);
|