Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
16 |
|
17 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
18 |
print(f"Error occurred: {results[0]}")
|
19 |
-
return [results[0]] + [None] *
|
20 |
|
21 |
exec_time, results_summary, df, mse_embeddings, mse_posture, mse_voice, \
|
22 |
mse_plot_embeddings, mse_plot_posture, mse_plot_voice, \
|
@@ -52,7 +52,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
52 |
print(error_message)
|
53 |
import traceback
|
54 |
traceback.print_exc()
|
55 |
-
return [error_message] + [None] *
|
56 |
|
57 |
def show_results(outputs):
|
58 |
return gr.Group(visible=True)
|
|
|
16 |
|
17 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
18 |
print(f"Error occurred: {results[0]}")
|
19 |
+
return [results[0]] + [None] * 27
|
20 |
|
21 |
exec_time, results_summary, df, mse_embeddings, mse_posture, mse_voice, \
|
22 |
mse_plot_embeddings, mse_plot_posture, mse_plot_voice, \
|
|
|
52 |
print(error_message)
|
53 |
import traceback
|
54 |
traceback.print_exc()
|
55 |
+
return [error_message] + [None] * 27
|
56 |
|
57 |
def show_results(outputs):
|
58 |
return gr.Group(visible=True)
|