Spaces:
Runtime error
Runtime error
limit max
Browse files
app.py
CHANGED
@@ -118,8 +118,13 @@ async def cut_timestamps_to_video(video_in, timestamps_var):
|
|
118 |
|
119 |
return output_video
|
120 |
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
123 |
timestamps_var = gr.JSON(visible=False)
|
124 |
with gr.Row():
|
125 |
with gr.Column():
|
@@ -142,7 +147,7 @@ with gr.Blocks() as demo:
|
|
142 |
|
143 |
with gr.Column():
|
144 |
text_in = gr.HighlightedText(
|
145 |
-
label="Transcription", combine_adjacent=False, show_legend=True, color_map={"+": "green", "-": "red"})
|
146 |
with gr.Row():
|
147 |
cut_btn = gr.Button("Cut Video")
|
148 |
select_all_words = gr.Button("Select All Words")
|
|
|
118 |
|
119 |
return output_video
|
120 |
|
121 |
+
css = """
|
122 |
+
#words-container {
|
123 |
+
max-height: 500px;
|
124 |
+
overflow-y: scroll !important;
|
125 |
+
}
|
126 |
+
"""
|
127 |
+
with gr.Blocks(css=css) as demo:
|
128 |
timestamps_var = gr.JSON(visible=False)
|
129 |
with gr.Row():
|
130 |
with gr.Column():
|
|
|
147 |
|
148 |
with gr.Column():
|
149 |
text_in = gr.HighlightedText(
|
150 |
+
label="Transcription", combine_adjacent=False, show_legend=True, color_map={"+": "green", "-": "red"}, elem_id="words-container")
|
151 |
with gr.Row():
|
152 |
cut_btn = gr.Button("Cut Video")
|
153 |
select_all_words = gr.Button("Select All Words")
|