Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Tuan Tran commited on
Commit ·
23f6da1
1
Parent(s): dec5b27
debug app
Browse files- backend/app.py +1 -0
backend/app.py
CHANGED
|
@@ -244,6 +244,7 @@ def get_chart(config, df):
|
|
| 244 |
"attacks_with_variations": config["attacks_with_variations"],
|
| 245 |
"all_attacks_df": df.to_dict(orient="records"),
|
| 246 |
}
|
|
|
|
| 247 |
|
| 248 |
return Response(json.dumps(chart_data), mimetype="application/json")
|
| 249 |
|
|
|
|
| 244 |
"attacks_with_variations": config["attacks_with_variations"],
|
| 245 |
"all_attacks_df": df.to_dict(orient="records"),
|
| 246 |
}
|
| 247 |
+
print(f"Chart data prepared with {len(df)} rows, columns: {df.columns.tolist()}")
|
| 248 |
|
| 249 |
return Response(json.dumps(chart_data), mimetype="application/json")
|
| 250 |
|