seiching commited on
Commit
b2c5097
1 Parent(s): 604503c

update input format

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -173,15 +173,14 @@ file_transcribe = gr.Interface(
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:
187
  # #print(transcribe_text)
 
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:
186
  # #print(transcribe_text)