Spaces:
Runtime error
Runtime error
MSchell0129 commited on
Commit ·
3cdada4
1
Parent(s): 7bff97a
- speech_to_text.py +1 -3
speech_to_text.py
CHANGED
|
@@ -2,11 +2,9 @@ import openai
|
|
| 2 |
import whisper
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
openai_api_key = os.environ['OPENAI_API_KEY']
|
| 6 |
|
| 7 |
-
llm = openai(temperature=0, openai_api_key='open_ai_key')
|
| 8 |
|
| 9 |
-
|
| 10 |
|
| 11 |
#This is another alternative, but this block allows for the detection of the language and it also provides lowever-level access to the model
|
| 12 |
|
|
|
|
| 2 |
import whisper
|
| 3 |
import os
|
| 4 |
|
|
|
|
| 5 |
|
|
|
|
| 6 |
|
| 7 |
+
|
| 8 |
|
| 9 |
#This is another alternative, but this block allows for the detection of the language and it also provides lowever-level access to the model
|
| 10 |
|