seiching commited on
Commit
604503c
·
1 Parent(s): 52264b1

modify the input list

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -173,13 +173,14 @@ file_transcribe = gr.Interface(
173
  cache_examples=True,
174
  allow_flagging="never",
175
  )
176
- def writenotes(apikeystr,inputscript):
177
  #text=transcribe_text
178
  #openaikey.set_key(inputkey)
179
  #openaikey = OpenAIKeyClass(inputkey)
180
  print('ok')
181
- if len(inputscript)>10:
182
  transcribe_text=inputscript
 
183
  ainotestext=process_chunks(apikeystr,transcribe_text)
184
  #ainotestext=""
185
  # with open('asr_resul.txt', 'w') as f:
 
173
  cache_examples=True,
174
  allow_flagging="never",
175
  )
176
+ def writenotes(inputdata):
177
  #text=transcribe_text
178
  #openaikey.set_key(inputkey)
179
  #openaikey = OpenAIKeyClass(inputkey)
180
  print('ok')
181
+ if len(inputdata[1])>10:
182
  transcribe_text=inputscript
183
+ apikeystr=inputdata[0]
184
  ainotestext=process_chunks(apikeystr,transcribe_text)
185
  #ainotestext=""
186
  # with open('asr_resul.txt', 'w') as f: