kresnik commited on
Commit
ffea93b
·
1 Parent(s): ed41b08
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -12,8 +12,9 @@ p=pipeline("automatic-speech-recognition", model="kresnik/wav2vec2-large-xlsr-ko
12
  def transcribe(audio, state=""):
13
  time.sleep(2)
14
  text = p(audio)["text"]
15
- state+= text+ " "
16
- return state, state
 
17
 
18
  gr.Interface(
19
  fn=transcribe,
@@ -36,6 +37,6 @@ gr.Interface(
36
  allow_screenshot=False,
37
  allow_flagging="never",
38
  theme="grass",
39
- live=True
40
  ).launch()
41
 
 
12
  def transcribe(audio, state=""):
13
  time.sleep(2)
14
  text = p(audio)["text"]
15
+ #state+= text+ " "
16
+ #return state, state
17
+ return text
18
 
19
  gr.Interface(
20
  fn=transcribe,
 
37
  allow_screenshot=False,
38
  allow_flagging="never",
39
  theme="grass",
40
+ live=False
41
  ).launch()
42