Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,11 +131,11 @@ iface = gr.Interface(
|
|
| 131 |
inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"),
|
| 132 |
outputs="json",
|
| 133 |
title="Static Fingerprint Model API",
|
| 134 |
-
description=
|
| 135 |
-
|
| 136 |
-
|
|
|
|
|
|
|
| 137 |
)
|
| 138 |
-
# ---------------------------------------------
|
| 139 |
-
|
| 140 |
if __name__ == "__main__":
|
| 141 |
-
iface.launch()
|
|
|
|
| 131 |
inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"),
|
| 132 |
outputs="json",
|
| 133 |
title="Static Fingerprint Model API",
|
| 134 |
+
description=(
|
| 135 |
+
"POST a dict of your 21 ratios. Server normalises using saved means/stds "
|
| 136 |
+
"and returns probabilities + predicted state."
|
| 137 |
+
),
|
| 138 |
+
api_name="predict", # <<< ADD THIS LINE
|
| 139 |
)
|
|
|
|
|
|
|
| 140 |
if __name__ == "__main__":
|
| 141 |
+
iface.launch()
|