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, mse_voice, \
|
21 |
mse_plot_embeddings, mse_plot_posture, mse_plot_voice, \
|
@@ -53,7 +53,7 @@ def process_and_show_completion(video_input_path, anomaly_threshold_input, fps,
|
|
53 |
print(error_message)
|
54 |
import traceback
|
55 |
traceback.print_exc()
|
56 |
-
return [error_message] + [None] *
|
57 |
|
58 |
def show_results(outputs):
|
59 |
return gr.Group(visible=True)
|
|
|
15 |
|
16 |
if isinstance(results[0], str) and results[0].startswith("Error"):
|
17 |
print(f"Error occurred: {results[0]}")
|
18 |
+
return [results[0]] + [None] * 28
|
19 |
|
20 |
exec_time, results_summary, df, mse_embeddings, mse_posture, mse_voice, \
|
21 |
mse_plot_embeddings, mse_plot_posture, mse_plot_voice, \
|
|
|
53 |
print(error_message)
|
54 |
import traceback
|
55 |
traceback.print_exc()
|
56 |
+
return [error_message] + [None] * 28
|
57 |
|
58 |
def show_results(outputs):
|
59 |
return gr.Group(visible=True)
|