Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ Generated by Video Transcription App
|
|
| 103 |
print(error_msg)
|
| 104 |
return "❌ Error", error_msg, "", None
|
| 105 |
|
| 106 |
-
with gr.Blocks(
|
| 107 |
gr.Markdown("""
|
| 108 |
# 🎥 Video Transcription & Summary Generator
|
| 109 |
Upload a video file or paste a YouTube link to get AI-powered transcription and summary.
|
|
@@ -126,10 +126,10 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Video Transcription") as demo:
|
|
| 126 |
status_output = gr.Textbox(label="Status", interactive=False)
|
| 127 |
|
| 128 |
with gr.Accordion("Full Transcription", open=True):
|
| 129 |
-
transcription_output = gr.Textbox(label="", lines=10,
|
| 130 |
|
| 131 |
with gr.Accordion("Summary", open=True):
|
| 132 |
-
summary_output = gr.Textbox(label="", lines=5
|
| 133 |
|
| 134 |
download_output = gr.File(label="📥 Download Complete Transcript")
|
| 135 |
|
|
@@ -139,5 +139,4 @@ with gr.Blocks(theme=gr.themes.Soft(), title="Video Transcription") as demo:
|
|
| 139 |
outputs=[status_output, transcription_output, summary_output, download_output]
|
| 140 |
)
|
| 141 |
|
| 142 |
-
|
| 143 |
-
demo.launch()
|
|
|
|
| 103 |
print(error_msg)
|
| 104 |
return "❌ Error", error_msg, "", None
|
| 105 |
|
| 106 |
+
with gr.Blocks(title="Video Transcription") as demo:
|
| 107 |
gr.Markdown("""
|
| 108 |
# 🎥 Video Transcription & Summary Generator
|
| 109 |
Upload a video file or paste a YouTube link to get AI-powered transcription and summary.
|
|
|
|
| 126 |
status_output = gr.Textbox(label="Status", interactive=False)
|
| 127 |
|
| 128 |
with gr.Accordion("Full Transcription", open=True):
|
| 129 |
+
transcription_output = gr.Textbox(label="", lines=10, max_lines=20)
|
| 130 |
|
| 131 |
with gr.Accordion("Summary", open=True):
|
| 132 |
+
summary_output = gr.Textbox(label="", lines=5)
|
| 133 |
|
| 134 |
download_output = gr.File(label="📥 Download Complete Transcript")
|
| 135 |
|
|
|
|
| 139 |
outputs=[status_output, transcription_output, summary_output, download_output]
|
| 140 |
)
|
| 141 |
|
| 142 |
+
demo.launch()
|
|
|