Spaces:
Running
on
Zero
Running
on
Zero
Update app_rvc.py
#23
by
Zulqairnain7869
- opened
- app_rvc.py +0 -8
app_rvc.py
CHANGED
@@ -267,14 +267,6 @@ def get_hash(filepath):
|
|
267 |
return file_hash.hexdigest()[:18]
|
268 |
|
269 |
|
270 |
-
def check_openai_api_key():
|
271 |
-
if not os.environ.get("OPENAI_API_KEY"):
|
272 |
-
raise ValueError(
|
273 |
-
"To use GPT for translation, please set up your OpenAI API key "
|
274 |
-
"as an environment variable in Linux as follows: "
|
275 |
-
"export OPENAI_API_KEY='your-api-key-here'. Or change the "
|
276 |
-
"translation process in Advanced settings."
|
277 |
-
)
|
278 |
|
279 |
|
280 |
class SoniTranslate(SoniTrCache):
|
|
|
267 |
return file_hash.hexdigest()[:18]
|
268 |
|
269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
|
271 |
|
272 |
class SoniTranslate(SoniTrCache):
|