Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -261,11 +261,11 @@ video_out = gr.Video(label="Video Out", mirror_webcam=False)
|
|
261 |
|
262 |
|
263 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
264 |
-
|
265 |
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="Spoken language in video", interactive=True)
|
266 |
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="Selected Whisper model", interactive=True)
|
267 |
number_speakers = gr.Number(precision=0, value=2, label="Selected number of speakers", interactive=True)
|
268 |
-
|
269 |
transcription_df = gr.DataFrame(value=df_init,label="Transcription dataframe", row_count=(0, "dynamic"), max_rows = 10, wrap=True, overflow_row_behaviour='paginate')
|
270 |
|
271 |
demo = gr.Blocks(css='''
|
|
|
261 |
|
262 |
|
263 |
df_init = pd.DataFrame(columns=['Start', 'End', 'Speaker', 'Text'])
|
264 |
+
memory = psutil.virtual_memory()
|
265 |
selected_source_lang = gr.Dropdown(choices=source_language_list, type="value", value="en", label="Spoken language in video", interactive=True)
|
266 |
selected_whisper_model = gr.Dropdown(choices=whisper_models, type="value", value="base", label="Selected Whisper model", interactive=True)
|
267 |
number_speakers = gr.Number(precision=0, value=2, label="Selected number of speakers", interactive=True)
|
268 |
+
system_info = gr.Markdown(f"*Memory: {memory.total / (1024 * 1024 * 1024):.2f}GB, used: {memory.percent}%, available: {memory.available / (1024 * 1024 * 1024):.2f}GB*")
|
269 |
transcription_df = gr.DataFrame(value=df_init,label="Transcription dataframe", row_count=(0, "dynamic"), max_rows = 10, wrap=True, overflow_row_behaviour='paginate')
|
270 |
|
271 |
demo = gr.Blocks(css='''
|