Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -351,9 +351,9 @@ video_in = gr.Video(label="Video file", mirror_webcam=False)
|
|
351 |
youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
|
352 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
353 |
memory = psutil.virtual_memory()
|
354 |
-
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="
|
355 |
-
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="
|
356 |
-
number_speakers = gr.Number(precision=0, value=0, label="
|
357 |
system_info = gr.Markdown(f"*Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB*")
|
358 |
download_transcript = gr.File(label="Download transcript")
|
359 |
transcription_df = gr.DataFrame(value=df_init,label="Transcription dataframe", row_count=(0, "dynamic"), max_rows = 10, wrap=True, overflow_row_behaviour='paginate')
|
|
|
351 |
youtube_url_in = gr.Textbox(label="Youtube url", lines=1, interactive=True)
|
352 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
353 |
memory = psutil.virtual_memory()
|
354 |
+
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="Выбрать язык", interactive=True)
|
355 |
+
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="Выбрать размер модели", interactive=True)
|
356 |
+
number_speakers = gr.Number(precision=0, value=0, label="Введите колличество спикеров. If value=0, model will automatic find the best number of speakers", interactive=True)
|
357 |
system_info = gr.Markdown(f"*Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB*")
|
358 |
download_transcript = gr.File(label="Download transcript")
|
359 |
transcription_df = gr.DataFrame(value=df_init,label="Transcription dataframe", row_count=(0, "dynamic"), max_rows = 10, wrap=True, overflow_row_behaviour='paginate')
|