Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -40,15 +40,12 @@ def translate(text):
|
|
40 |
|
41 |
|
42 |
# Set the starting state to an empty string
|
43 |
-
description = "A simple interface to streaming interpret from spoken English to Vietnamese."
|
44 |
-
article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>."
|
45 |
-
title="Streaming interpret English to Vietnamese"
|
46 |
|
47 |
-
gr.Interface(
|
48 |
fn=transcribe,
|
49 |
-
title=
|
50 |
-
description=
|
51 |
-
article=
|
52 |
inputs=[
|
53 |
gr.Audio(source="microphone", type="filepath", streaming=True),
|
54 |
"state"
|
@@ -57,4 +54,6 @@ gr.Interface(
|
|
57 |
"textbox",
|
58 |
"state"
|
59 |
],
|
60 |
-
live=True)
|
|
|
|
|
|
40 |
|
41 |
|
42 |
# Set the starting state to an empty string
|
|
|
|
|
|
|
43 |
|
44 |
+
iface = gr.Interface(
|
45 |
fn=transcribe,
|
46 |
+
title="Streaming interpret English to Vietnamese",
|
47 |
+
description="A simple interface to streaming interpret from spoken English to Vietnamese.",
|
48 |
+
article="Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>.",
|
49 |
inputs=[
|
50 |
gr.Audio(source="microphone", type="filepath", streaming=True),
|
51 |
"state"
|
|
|
54 |
"textbox",
|
55 |
"state"
|
56 |
],
|
57 |
+
live=True)
|
58 |
+
|
59 |
+
iface.launch(enable_queue=True, debug=True)
|