Spaces:
Paused
Paused
fixing prediction
Browse files
model.py
CHANGED
|
@@ -225,7 +225,7 @@ Category:"""
|
|
| 225 |
"choices": [best_choice]
|
| 226 |
}
|
| 227 |
}],
|
| 228 |
-
"model_version":
|
| 229 |
}
|
| 230 |
logger.info(f"Formatted prediction: {json.dumps(prediction, indent=2)}")
|
| 231 |
predictions.append(prediction)
|
|
@@ -235,7 +235,7 @@ Category:"""
|
|
| 235 |
raise
|
| 236 |
|
| 237 |
logger.info(f"Returning {len(predictions)} predictions")
|
| 238 |
-
return predictions
|
| 239 |
|
| 240 |
def fit(self, event, data, **kwargs):
|
| 241 |
"""Fine-tune the model using LoRA when new annotations are available"""
|
|
|
|
| 225 |
"choices": [best_choice]
|
| 226 |
}
|
| 227 |
}],
|
| 228 |
+
"model_version": "1.0.0"
|
| 229 |
}
|
| 230 |
logger.info(f"Formatted prediction: {json.dumps(prediction, indent=2)}")
|
| 231 |
predictions.append(prediction)
|
|
|
|
| 235 |
raise
|
| 236 |
|
| 237 |
logger.info(f"Returning {len(predictions)} predictions")
|
| 238 |
+
return predictions
|
| 239 |
|
| 240 |
def fit(self, event, data, **kwargs):
|
| 241 |
"""Fine-tune the model using LoRA when new annotations are available"""
|