Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ import time
|
|
3 |
import openai
|
4 |
import json
|
5 |
import os
|
|
|
|
|
|
|
6 |
|
7 |
openai.api_key = os.environ.get('OPENAI_KEY')
|
8 |
|
|
|
3 |
import openai
|
4 |
import json
|
5 |
import os
|
6 |
+
from transformers import pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
7 |
+
|
8 |
+
asr_pipeline = pipeline("automatic-speech-recognition", model="facebook/wav2vec2-large-robust-ft-libri-960h")
|
9 |
|
10 |
openai.api_key = os.environ.get('OPENAI_KEY')
|
11 |
|