Spaces:
Running
Running
Updated theming
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def process_video(video_file):
|
|
| 24 |
"victor-upmeet/whisperx:84d2ad2d6194fe98a17d2b60bef1c7f910c46b2f6fd38996ca457afd9c8abfcb",
|
| 25 |
input={"audio_file": audio_f},
|
| 26 |
language="en",
|
| 27 |
-
batch_size=
|
| 28 |
api_token=REPLICATE_API_TOKEN,
|
| 29 |
align_output=False,
|
| 30 |
diarization=False
|
|
@@ -41,7 +41,7 @@ with gr.Blocks(theme="monochrome", css="""
|
|
| 41 |
.centered-container {
|
| 42 |
width: 80vw;
|
| 43 |
min-width: 400px;
|
| 44 |
-
max-width:
|
| 45 |
margin-left: auto !important;
|
| 46 |
margin-right: auto !important;
|
| 47 |
margin-top: 2.5em;
|
|
@@ -72,7 +72,6 @@ with gr.Blocks(theme="monochrome", css="""
|
|
| 72 |
label="Input Video File (.mp4)",
|
| 73 |
interactive=True,
|
| 74 |
sources=["upload"],
|
| 75 |
-
streaming=True
|
| 76 |
)
|
| 77 |
with gr.Row(elem_classes="transcribe-btn-center"):
|
| 78 |
transcribe_btn = gr.Button("Transcribe", scale=0)
|
|
@@ -80,7 +79,7 @@ with gr.Blocks(theme="monochrome", css="""
|
|
| 80 |
text_output = gr.Textbox(
|
| 81 |
label="Raw Text Output",
|
| 82 |
show_copy_button=True,
|
| 83 |
-
lines=
|
| 84 |
interactive=False,
|
| 85 |
)
|
| 86 |
transcribe_btn.click(
|
|
|
|
| 24 |
"victor-upmeet/whisperx:84d2ad2d6194fe98a17d2b60bef1c7f910c46b2f6fd38996ca457afd9c8abfcb",
|
| 25 |
input={"audio_file": audio_f},
|
| 26 |
language="en",
|
| 27 |
+
batch_size=512,
|
| 28 |
api_token=REPLICATE_API_TOKEN,
|
| 29 |
align_output=False,
|
| 30 |
diarization=False
|
|
|
|
| 41 |
.centered-container {
|
| 42 |
width: 80vw;
|
| 43 |
min-width: 400px;
|
| 44 |
+
max-width: 1400px;
|
| 45 |
margin-left: auto !important;
|
| 46 |
margin-right: auto !important;
|
| 47 |
margin-top: 2.5em;
|
|
|
|
| 72 |
label="Input Video File (.mp4)",
|
| 73 |
interactive=True,
|
| 74 |
sources=["upload"],
|
|
|
|
| 75 |
)
|
| 76 |
with gr.Row(elem_classes="transcribe-btn-center"):
|
| 77 |
transcribe_btn = gr.Button("Transcribe", scale=0)
|
|
|
|
| 79 |
text_output = gr.Textbox(
|
| 80 |
label="Raw Text Output",
|
| 81 |
show_copy_button=True,
|
| 82 |
+
lines=14,
|
| 83 |
interactive=False,
|
| 84 |
)
|
| 85 |
transcribe_btn.click(
|