Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import tempfile
|
|
| 4 |
import os
|
| 5 |
from pathlib import Path
|
| 6 |
|
| 7 |
-
MODEL_SIZE = "
|
| 8 |
|
| 9 |
class GradioSRTGenerator:
|
| 10 |
def __init__(self):
|
|
@@ -75,7 +75,8 @@ def create_ui():
|
|
| 75 |
|
| 76 |
with gr.Row():
|
| 77 |
with gr.Column():
|
| 78 |
-
input_video = gr.Video(label="Upload Video", source="upload", interactive=True)
|
|
|
|
| 79 |
generate_btn = gr.Button("π― Generate SRT", variant="primary")
|
| 80 |
status_text = gr.Textbox(label="Status", interactive=False, show_copy_button=True)
|
| 81 |
|
|
|
|
| 4 |
import os
|
| 5 |
from pathlib import Path
|
| 6 |
|
| 7 |
+
MODEL_SIZE = "medium" # switched from "small" to "medium"
|
| 8 |
|
| 9 |
class GradioSRTGenerator:
|
| 10 |
def __init__(self):
|
|
|
|
| 75 |
|
| 76 |
with gr.Row():
|
| 77 |
with gr.Column():
|
| 78 |
+
- input_video = gr.Video(label="Upload Video", source="upload", interactive=True)
|
| 79 |
+
+ input_video = gr.Video(label="Upload Video")
|
| 80 |
generate_btn = gr.Button("π― Generate SRT", variant="primary")
|
| 81 |
status_text = gr.Textbox(label="Status", interactive=False, show_copy_button=True)
|
| 82 |
|