From e8cfe9b8e63c5ebf641caafcc679f6cd19f80b80 Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Wed, 5 Jun 2024 10:11:16 +0800 Subject: [PATCH] fix local variable 'plot_output' referenced before assignment --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 9ee983a..29be284 100644 --- a/app.py +++ b/app.py @@ -93,6 +93,7 @@ def optimizer( except: print("Failed to find optimal retention") optimizer.optimal_retention = 0.9 + plot_output = None suggested_retention_markdown = ( f"""# Suggested Retention: `{optimizer.optimal_retention:.2f}`""" )