sss2000 commited on
Commit
baf5b80
1 Parent(s): 044688a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ st.header("Turn Your English Audio to Chinese text")
9
  def audio2txt(audioname):
10
  pipe = pipeline("automatic-speech-recognition", model="avery0/pipeline1model2")
11
  rst = pipe(audioname)
12
- return rst
13
 
14
  # Function to translate text
15
  @st.cache
 
9
  def audio2txt(audioname):
10
  pipe = pipeline("automatic-speech-recognition", model="avery0/pipeline1model2")
11
  rst = pipe(audioname)
12
+ return rst['text']
13
 
14
  # Function to translate text
15
  @st.cache