yerevann commited on
Commit
7be897c
β€’
1 Parent(s): fcf7b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import time
6
  asr = pipeline("automatic-speech-recognition", "YSU/aspram")
7
 
8
  def transcribe(audio, state=""):
9
- time.sleep(5)
10
  text = asr(audio)["text"]
11
  state += text + " "
12
  print('chunk!')
@@ -22,6 +22,6 @@ gr.Interface(
22
  "textbox",
23
  "state"
24
  ],
25
- live=True,
26
  css='body {background-color: rgba(240, 200, 192)}',
27
  ).launch()
 
6
  asr = pipeline("automatic-speech-recognition", "YSU/aspram")
7
 
8
  def transcribe(audio, state=""):
9
+ # time.sleep(5)
10
  text = asr(audio)["text"]
11
  state += text + " "
12
  print('chunk!')
 
22
  "textbox",
23
  "state"
24
  ],
25
+ live=False,
26
  css='body {background-color: rgba(240, 200, 192)}',
27
  ).launch()