Spaces:
Running
Running
bofenghuang
commited on
Commit
β’
d925c7e
1
Parent(s):
fe32065
updt
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: π
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.9
|
8 |
app_file: app.py
|
|
|
1 |
---
|
2 |
+
title: Realtime ASR in French
|
3 |
emoji: π
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.9
|
8 |
app_file: app.py
|
app.py
CHANGED
@@ -8,6 +8,7 @@ def transcribe(audio, state=""):
|
|
8 |
state += text + " "
|
9 |
return state, state
|
10 |
|
|
|
11 |
iface = gr.Interface(
|
12 |
fn=transcribe,
|
13 |
inputs=[
|
@@ -24,5 +25,4 @@ iface = gr.Interface(
|
|
24 |
live=True
|
25 |
)
|
26 |
|
27 |
-
|
28 |
-
iface.launch(server_name="0.0.0.0", share=True)
|
|
|
8 |
state += text + " "
|
9 |
return state, state
|
10 |
|
11 |
+
# streaming mode
|
12 |
iface = gr.Interface(
|
13 |
fn=transcribe,
|
14 |
inputs=[
|
|
|
25 |
live=True
|
26 |
)
|
27 |
|
28 |
+
iface.launch()
|
|