Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def process_and_update(file, max_speakers, progress=gr.Progress()):
|
|
21 |
print_debug_info(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data)
|
22 |
|
23 |
# Update visibility and charts
|
24 |
-
return update_visibility_and_charts(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data)
|
25 |
|
26 |
def create_gradio_interface():
|
27 |
with gr.Blocks() as demo:
|
@@ -65,6 +65,7 @@ def create_gradio_interface():
|
|
65 |
gr.Textbox(visible=False, label="Personalities Explanation")
|
66 |
])
|
67 |
|
|
|
68 |
submit_button.click(
|
69 |
process_and_update,
|
70 |
inputs=[input_file, max_speakers],
|
@@ -72,6 +73,7 @@ def create_gradio_interface():
|
|
72 |
)
|
73 |
|
74 |
return demo
|
|
|
75 |
def print_debug_info(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data):
|
76 |
print("Debug Information:")
|
77 |
print(f"Status: {status}")
|
|
|
21 |
print_debug_info(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data)
|
22 |
|
23 |
# Update visibility and charts
|
24 |
+
return update_visibility_and_charts(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data, max_speakers)
|
25 |
|
26 |
def create_gradio_interface():
|
27 |
with gr.Blocks() as demo:
|
|
|
65 |
gr.Textbox(visible=False, label="Personalities Explanation")
|
66 |
])
|
67 |
|
68 |
+
|
69 |
submit_button.click(
|
70 |
process_and_update,
|
71 |
inputs=[input_file, max_speakers],
|
|
|
73 |
)
|
74 |
|
75 |
return demo
|
76 |
+
|
77 |
def print_debug_info(status, exec_time, lang, transcription, attachments_data, bigfive_data, personalities_data, chart_data):
|
78 |
print("Debug Information:")
|
79 |
print(f"Status: {status}")
|