vumichien commited on
Commit
ac68576
·
1 Parent(s): df83202

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
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=title,
50
- description=description,
51
- article=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).launch(debug=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)