PierreBrunelle
commited on
Commit
β’
38bb5e6
1
Parent(s):
fc79458
Update app.py
Browse files
app.py
CHANGED
@@ -204,6 +204,8 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
204 |
with gr.Column(scale=1):
|
205 |
video_file = gr.Video(
|
206 |
label=f"Upload Call Recording (max {MAX_VIDEO_SIZE_MB} MB)",
|
|
|
|
|
207 |
)
|
208 |
process_btn = gr.Button("Analyze Call", variant="primary")
|
209 |
status_output = gr.Textbox(label="Status", interactive=False)
|
@@ -217,7 +219,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
217 |
output_insights = gr.Textbox(label="Key Takeaways", lines=20)
|
218 |
|
219 |
with gr.TabItem("π΅ Audio"):
|
220 |
-
output_audio = gr.Audio(label="Extracted Audio",
|
221 |
|
222 |
with gr.TabItem("π Search"):
|
223 |
with gr.Row():
|
@@ -266,4 +268,4 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
266 |
clear.click(lambda: None, None, chatbot, queue=False)
|
267 |
|
268 |
if __name__ == "__main__":
|
269 |
-
demo.launch()
|
|
|
204 |
with gr.Column(scale=1):
|
205 |
video_file = gr.Video(
|
206 |
label=f"Upload Call Recording (max {MAX_VIDEO_SIZE_MB} MB)",
|
207 |
+
include_audio=True,
|
208 |
+
autoplay=False
|
209 |
)
|
210 |
process_btn = gr.Button("Analyze Call", variant="primary")
|
211 |
status_output = gr.Textbox(label="Status", interactive=False)
|
|
|
219 |
output_insights = gr.Textbox(label="Key Takeaways", lines=20)
|
220 |
|
221 |
with gr.TabItem("π΅ Audio"):
|
222 |
+
output_audio = gr.Audio(label="Extracted Audio", show_download_button=True)
|
223 |
|
224 |
with gr.TabItem("π Search"):
|
225 |
with gr.Row():
|
|
|
268 |
clear.click(lambda: None, None, chatbot, queue=False)
|
269 |
|
270 |
if __name__ == "__main__":
|
271 |
+
demo.launch(show_api=False)
|