Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,12 +22,7 @@ transcribe_token_id = all_special_ids[-5]
|
|
22 |
translate_token_id = all_special_ids[-6]
|
23 |
|
24 |
def get_api():
|
25 |
-
api =
|
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):
|
|
|
22 |
translate_token_id = all_special_ids[-6]
|
23 |
|
24 |
def get_api():
|
25 |
+
api = ChatGPT(session_token)
|
|
|
|
|
|
|
|
|
|
|
26 |
return api
|
27 |
|
28 |
def translate_or_transcribe(audio, task):
|