Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,6 +102,7 @@ def create_dashboard():
|
|
| 102 |
|
| 103 |
# Create results DataFrame
|
| 104 |
results_df = pd.DataFrame({
|
|
|
|
| 105 |
'Premium_per_Policy': premiums,
|
| 106 |
'Initial_Account_Value': initial_avs,
|
| 107 |
'Monte_Carlo_TVOG': monte_carlo_results,
|
|
@@ -333,7 +334,7 @@ def create_dashboard():
|
|
| 333 |
with gr.Column(scale=2):
|
| 334 |
gr.Markdown("### Results Summary")
|
| 335 |
results_table = gr.Dataframe(
|
| 336 |
-
headers=["Premium per Policy", "Initial Account Value", "Monte Carlo TVOG",
|
| 337 |
"Black-Scholes TVOG", "MC/BS Ratio", "Difference"],
|
| 338 |
label="TVOG Comparison Results"
|
| 339 |
)
|
|
|
|
| 102 |
|
| 103 |
# Create results DataFrame
|
| 104 |
results_df = pd.DataFrame({
|
| 105 |
+
'Model_Point': range(1, len(premiums) + 1),
|
| 106 |
'Premium_per_Policy': premiums,
|
| 107 |
'Initial_Account_Value': initial_avs,
|
| 108 |
'Monte_Carlo_TVOG': monte_carlo_results,
|
|
|
|
| 334 |
with gr.Column(scale=2):
|
| 335 |
gr.Markdown("### Results Summary")
|
| 336 |
results_table = gr.Dataframe(
|
| 337 |
+
headers=["Model Point", "Premium per Policy", "Initial Account Value", "Monte Carlo TVOG",
|
| 338 |
"Black-Scholes TVOG", "MC/BS Ratio", "Difference"],
|
| 339 |
label="TVOG Comparison Results"
|
| 340 |
)
|