AI-DHD commited on
Commit
630334d
·
1 Parent(s): b1dc0cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
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 = 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):
 
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):