Spaces:
Runtime error
Runtime error
Commit
·
d435f81
1
Parent(s):
839c4a5
Update app.py
Browse files
app.py
CHANGED
@@ -23,11 +23,11 @@ translate_token_id = all_special_ids[-6]
|
|
23 |
|
24 |
def get_api():
|
25 |
api = None
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
return api
|
32 |
|
33 |
def translate_or_transcribe(audio, task):
|
|
|
23 |
|
24 |
def get_api():
|
25 |
api = None
|
26 |
+
try:
|
27 |
+
api = ChatGPT(session_token)
|
28 |
+
# api.refresh_auth()
|
29 |
+
except:
|
30 |
+
api = None
|
31 |
return api
|
32 |
|
33 |
def translate_or_transcribe(audio, task):
|