Spaces:
Sleeping
Sleeping
Commit ·
a0f1809
1
Parent(s): d574c84
Refactor PredictionChart to support dynamic column selection and improve data handling
Browse files
helper.py
CHANGED
|
@@ -22,17 +22,6 @@ def process_api_response(json_response):
|
|
| 22 |
# Construct final output dictionary
|
| 23 |
return temp_predictions_dict, sample_sim_attr
|
| 24 |
|
| 25 |
-
# data_out = {
|
| 26 |
-
# "status": "success",
|
| 27 |
-
# "data": {
|
| 28 |
-
# "id": input_data.get("id", "default_id"), # Assuming an 'id' key exists in the input
|
| 29 |
-
# "predictions": temp_predictions_dict,
|
| 30 |
-
# "similarity": sample_sim_attr
|
| 31 |
-
# }
|
| 32 |
-
# }
|
| 33 |
-
|
| 34 |
-
# return data_out
|
| 35 |
-
|
| 36 |
def get_sample_similarity_attr():
|
| 37 |
sample_sim = {
|
| 38 |
"GB1263": {
|
|
|
|
| 22 |
# Construct final output dictionary
|
| 23 |
return temp_predictions_dict, sample_sim_attr
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
def get_sample_similarity_attr():
|
| 26 |
sample_sim = {
|
| 27 |
"GB1263": {
|