Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,9 @@
|
|
| 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 |
|
| 7 |
-
def generate_output(method, file):
|
| 8 |
-
|
| 9 |
-
summary_text = summarize_file(method, file)
|
| 10 |
-
audio_summary = text_to_speech(summary_text)
|
| 11 |
-
|
| 12 |
-
return summary_text, audio_summary
|
| 13 |
-
|
| 14 |
-
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
with gr.Row():
|
| 17 |
with gr.Column():
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from helper_fns import process_files, get_summarization_method, generate_output
|
| 3 |
from summarizer import summarize_file
|
| 4 |
from helper_fns import text_to_speech
|
| 5 |
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
with gr.Blocks() as demo:
|
| 8 |
with gr.Row():
|
| 9 |
with gr.Column():
|