Spaces:
Sleeping
Sleeping
capradeepgujaran
commited on
Commit
•
886e3e9
1
Parent(s):
ed39137
Update openai_tts_tool.py
Browse files- openai_tts_tool.py +2 -2
openai_tts_tool.py
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
import os
|
4 |
from langdetect import detect, DetectorFactory
|
5 |
import logging
|
6 |
-
import
|
7 |
-
client =
|
8 |
|
9 |
# Ensure consistent results from langdetect
|
10 |
DetectorFactory.seed = 0
|
|
|
3 |
import os
|
4 |
from langdetect import detect, DetectorFactory
|
5 |
import logging
|
6 |
+
from openai import OpenAI
|
7 |
+
client = OpenAI(api_key=api_key)
|
8 |
|
9 |
# Ensure consistent results from langdetect
|
10 |
DetectorFactory.seed = 0
|