Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,7 +204,7 @@ def gradio_interface(patient_info, image):
|
|
| 204 |
# Format prediction results
|
| 205 |
image_analysis = {
|
| 206 |
"prediction": classes[np.argmax(prediction[0])],
|
| 207 |
-
"confidence": np.max(
|
| 208 |
}
|
| 209 |
logger.info(f"Image analysis results: {image_analysis}")
|
| 210 |
|
|
|
|
| 204 |
# Format prediction results
|
| 205 |
image_analysis = {
|
| 206 |
"prediction": classes[np.argmax(prediction[0])],
|
| 207 |
+
"confidence": np.max(prediction[0]) * 100
|
| 208 |
}
|
| 209 |
logger.info(f"Image analysis results: {image_analysis}")
|
| 210 |
|