bluenevus commited on
Commit
500dce0
·
verified ·
1 Parent(s): 2d36724

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -247,13 +247,6 @@ def process_media(file_path, is_url=False):
247
  if wav_path and os.path.exists(wav_path):
248
  os.unlink(wav_path)
249
 
250
- @app.callback(
251
- [Output('summary-status', 'children'),
252
- Output('summary-output', 'children')],
253
- Input('btn-summarize', 'n_clicks'),
254
- State('transcription-preview', 'children'),
255
- prevent_initial_call=True
256
- )
257
  @app.callback(
258
  [Output('summary-status', 'children'),
259
  Output('download-transcription', 'data')],
@@ -288,14 +281,6 @@ def summarize_transcript(n_clicks, transcript):
288
  logger.error(f"Error generating summary: {str(e)}")
289
  return f"An error occurred while generating the summary: {str(e)}", None
290
 
291
- @app.callback(
292
- [Output('minutes-status', 'children'),
293
- Output('minutes-output', 'children')],
294
- Input('btn-minutes', 'n_clicks'),
295
- State('transcription-preview', 'children'),
296
- prevent_initial_call=True
297
- )
298
-
299
  @app.callback(
300
  [Output('minutes-status', 'children'),
301
  Output('download-transcription', 'data', allow_duplicate=True)],
@@ -350,6 +335,7 @@ def generate_meeting_minutes(n_clicks, transcript):
350
  [State('upload-media', 'filename'),
351
  State('url-input', 'value')]
352
  )
 
353
  def update_output(contents, n_clicks, filename, url):
354
  global transcription_text
355
  ctx = callback_context
 
247
  if wav_path and os.path.exists(wav_path):
248
  os.unlink(wav_path)
249
 
 
 
 
 
 
 
 
250
  @app.callback(
251
  [Output('summary-status', 'children'),
252
  Output('download-transcription', 'data')],
 
281
  logger.error(f"Error generating summary: {str(e)}")
282
  return f"An error occurred while generating the summary: {str(e)}", None
283
 
 
 
 
 
 
 
 
 
284
  @app.callback(
285
  [Output('minutes-status', 'children'),
286
  Output('download-transcription', 'data', allow_duplicate=True)],
 
335
  [State('upload-media', 'filename'),
336
  State('url-input', 'value')]
337
  )
338
+
339
  def update_output(contents, n_clicks, filename, url):
340
  global transcription_text
341
  ctx = callback_context