Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|