Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ st.header("Turn Your English Audio to Chinese text")
|
|
6 |
|
7 |
# Function to convert audio to text
|
8 |
def audio2txt(audioname):
|
9 |
-
pipe = pipeline("automatic-speech-recognition", model="avery0/
|
10 |
rst = pipe(audioname)
|
11 |
return rst['text']
|
12 |
|
|
|
6 |
|
7 |
# Function to convert audio to text
|
8 |
def audio2txt(audioname):
|
9 |
+
pipe = pipeline("automatic-speech-recognition", model="avery0/pipeline1model1")
|
10 |
rst = pipe(audioname)
|
11 |
return rst['text']
|
12 |
|