Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import os
|
|
5 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
6 |
|
7 |
from transformers import pipeline
|
8 |
-
p = pipeline("automatic-speech-recognition",model="openai/whisper-
|
9 |
|
10 |
def transcribe(audio):
|
11 |
text = p(audio)["text"]
|
|
|
5 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
6 |
|
7 |
from transformers import pipeline
|
8 |
+
p = pipeline("automatic-speech-recognition",model="openai/whisper-tiny")
|
9 |
|
10 |
def transcribe(audio):
|
11 |
text = p(audio)["text"]
|