seiching commited on
Commit
6091c72
1 Parent(s): 88c9f47

update openai key

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -55,7 +55,8 @@ def process_chunks(openaikeystr,inputtext):
55
 
56
  # api_key=openaikeystr,
57
  # )
58
- openaiojb =OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed")
 
59
  text = inputtext
60
  #openaikey.set_key(openaikeystr)
61
  #print('process_chunk',openaikey.get_key())
@@ -180,8 +181,8 @@ def writenotes( apikeystr,inputscript):
180
  print('ok')
181
  if len(inputscript)>10:
182
  transcribe_text=inputscript
183
- #ainotestext=process_chunks(apikeystr,transcribe_text)
184
- ainotestext=inputscript
185
  #ainotestext=""
186
  # with open('asr_resul.txt', 'w') as f:
187
  # #print(transcribe_text)
 
55
 
56
  # api_key=openaikeystr,
57
  # )
58
+ #openaiojb =OpenAI(base_url="http://localhost:1234/v1", api_key="not-needed")
59
+ openaiojb =OpenAI( api_key=openaikeystr)
60
  text = inputtext
61
  #openaikey.set_key(openaikeystr)
62
  #print('process_chunk',openaikey.get_key())
 
181
  print('ok')
182
  if len(inputscript)>10:
183
  transcribe_text=inputscript
184
+ ainotestext=process_chunks(apikeystr,transcribe_text)
185
+ # ainotestext=inputscript
186
  #ainotestext=""
187
  # with open('asr_resul.txt', 'w') as f:
188
  # #print(transcribe_text)