fix local variable 'plot_output' referenced before assignment
Browse files
app.py
CHANGED
|
@@ -93,6 +93,7 @@ def optimizer(
|
|
| 93 |
except:
|
| 94 |
print("Failed to find optimal retention")
|
| 95 |
optimizer.optimal_retention = 0.9
|
|
|
|
| 96 |
suggested_retention_markdown = (
|
| 97 |
f"""# Suggested Retention: `{optimizer.optimal_retention:.2f}`"""
|
| 98 |
)
|
|
|
|
| 93 |
except:
|
| 94 |
print("Failed to find optimal retention")
|
| 95 |
optimizer.optimal_retention = 0.9
|
| 96 |
+
plot_output = None
|
| 97 |
suggested_retention_markdown = (
|
| 98 |
f"""# Suggested Retention: `{optimizer.optimal_retention:.2f}`"""
|
| 99 |
)
|