bisoye commited on
Commit
1d0824d
1 Parent(s): de44fff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  from helper_fns import process_files, get_summarization_method
3
- from summarizer import summarize_files
 
4
 
5
  with gr.Blocks() as demo:
6
  with gr.Row():
@@ -29,12 +30,16 @@ with gr.Blocks() as demo:
29
  with gr.Column():
30
  summary_text = gr.Textbox(label='Summarized Text: ',
31
  interactive=False)
32
-
 
 
 
 
33
 
34
  generate_summaries_button.click(
35
  fn = summarize_files,
36
  inputs=[summarization_method_radio, files],
37
- outputs=[summary_text]#, audio_file]
38
  )
39
 
40
 
 
1
  import gradio as gr
2
  from helper_fns import process_files, get_summarization_method
3
+ from summarizer import summarize_file
4
+ from helper_fns import text_to_speech
5
 
6
  with gr.Blocks() as demo:
7
  with gr.Row():
 
30
  with gr.Column():
31
  summary_text = gr.Textbox(label='Summarized Text: ',
32
  interactive=False)
33
+ summary_audio = gr.Audio(label='Summarized audio',
34
+ sources='upload',
35
+ type='filepath',
36
+ interactive=False,
37
+ autoplay=False)
38
 
39
  generate_summaries_button.click(
40
  fn = summarize_files,
41
  inputs=[summarization_method_radio, files],
42
+ outputs=[summary_text, audio_file]
43
  )
44
 
45