oconnoob commited on
Commit
0d6869b
·
1 Parent(s): 8aafd1f
Files changed (1) hide show
  1. app/app.py +3 -3
app/app.py CHANGED
@@ -126,7 +126,7 @@ def audint_selected(language, audio_intelligence_selector):
126
  return [selected_audint_opts, selected_audint_opts]
127
 
128
 
129
- def create_ouput(r, paras, language, transc_opts=None, audint_opts=None):
130
  """From a transcript response, return all outputs for audio intelligence"""
131
  if transc_opts is None:
132
  transc_opts = ['Automatic Language Detection', 'Speaker Labels', 'Filter Profanity']
@@ -225,7 +225,7 @@ def submit_to_AAI(api_key,
225
  # Fetch paragraphs of transcript
226
  transc_id = r['id']
227
  paras = make_paras_string(transc_id, header)
228
- return create_ouput(r, paras, language, transcription_options, audio_intelligence_selector)
229
 
230
 
231
  def example_output(language):
@@ -236,7 +236,7 @@ def example_output(language):
236
  with open('../example_data/response.json', 'r') as f:
237
  r = json.load(f)
238
 
239
- return create_ouput(r, paras, language)
240
 
241
 
242
  with open('app/styles.css', 'r') as f:
 
126
  return [selected_audint_opts, selected_audint_opts]
127
 
128
 
129
+ def create_output(r, paras, language, transc_opts=None, audint_opts=None):
130
  """From a transcript response, return all outputs for audio intelligence"""
131
  if transc_opts is None:
132
  transc_opts = ['Automatic Language Detection', 'Speaker Labels', 'Filter Profanity']
 
225
  # Fetch paragraphs of transcript
226
  transc_id = r['id']
227
  paras = make_paras_string(transc_id, header)
228
+ return create_output(r, paras, language, transcription_options, audio_intelligence_selector)
229
 
230
 
231
  def example_output(language):
 
236
  with open('../example_data/response.json', 'r') as f:
237
  r = json.load(f)
238
 
239
+ return create_output(r, paras, language)
240
 
241
 
242
  with open('app/styles.css', 'r') as f: