Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
15 |
|
16 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
17 |
print(f"Error occurred: {results[0]}")
|
18 |
-
return [results[0]] + [None] *
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, \
|
21 |
mse_plot_embeddings, mse_histogram_embeddings, \
|
@@ -51,7 +51,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
51 |
print(error_message)
|
52 |
import traceback
|
53 |
traceback.print_exc()
|
54 |
-
return [error_message] + [None] *
|
55 |
|
56 |
with gr.Blocks() as iface:
|
57 |
gr.Markdown("""
|
|
|
15 |
|
16 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
17 |
print(f"Error occurred: {results[0]}")
|
18 |
+
return [results[0]] + [None] * 18
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, \
|
21 |
mse_plot_embeddings, mse_histogram_embeddings, \
|
|
|
51 |
print(error_message)
|
52 |
import traceback
|
53 |
traceback.print_exc()
|
54 |
+
return [error_message] + [None] * 18
|
55 |
|
56 |
with gr.Blocks() as iface:
|
57 |
gr.Markdown("""
|