Spaces:
Build error
Build error
Commit
·
43f52c4
1
Parent(s):
d91fab7
fix issue
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from numpy import random
|
|
| 4 |
from PIL import Image
|
| 5 |
pipe = pipeline(model="openai/whisper-medium") # change to "your-username/the-name-you-picked"
|
| 6 |
|
| 7 |
-
def transcribe(audio
|
| 8 |
text = pipe(audio)["text"]
|
| 9 |
return text
|
| 10 |
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
pipe = pipeline(model="openai/whisper-medium") # change to "your-username/the-name-you-picked"
|
| 6 |
|
| 7 |
+
def transcribe(audio):
|
| 8 |
text = pipe(audio)["text"]
|
| 9 |
return text
|
| 10 |
|