Spaces:
Configuration error
Configuration error
Commit
·
fc7a9fb
1
Parent(s):
db804e6
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,6 @@ from transformers import pipeline
|
|
| 4 |
|
| 5 |
s2t=gr.Interface.load('huggingface/facebook/s2t-medium-librispeech-asr')
|
| 6 |
|
| 7 |
-
grammar = gr.Interface.load('huggingface/prithivida/grammar_error_correcter_v1')
|
| 8 |
-
|
| 9 |
|
| 10 |
def out(audio1,audio2):
|
| 11 |
if (audio1==None) and (audio2==None):
|
|
@@ -22,7 +20,7 @@ iface = gr.Interface(
|
|
| 22 |
fn=out,
|
| 23 |
title="DIFF-SVC Cloud Rendering",
|
| 24 |
description="",
|
| 25 |
-
inputs=[gr.inputs.Audio(source="upload", type="filepath", label=None, optional=True),
|
| 26 |
)
|
| 27 |
|
| 28 |
iface.launch(enable_queue=True,show_error=True)
|
|
|
|
| 4 |
|
| 5 |
s2t=gr.Interface.load('huggingface/facebook/s2t-medium-librispeech-asr')
|
| 6 |
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def out(audio1,audio2):
|
| 9 |
if (audio1==None) and (audio2==None):
|
|
|
|
| 20 |
fn=out,
|
| 21 |
title="DIFF-SVC Cloud Rendering",
|
| 22 |
description="",
|
| 23 |
+
inputs=[gr.inputs.Audio(source="upload", type="filepath", label=None, optional=True)],
|
| 24 |
)
|
| 25 |
|
| 26 |
iface.launch(enable_queue=True,show_error=True)
|