Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,14 +128,11 @@ else:
|
|
| 128 |
# ---------- DEFINE GRADIO INTERFACE ----------
|
| 129 |
iface = gr.Interface(
|
| 130 |
fn=predict_from_json,
|
| 131 |
-
inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"
|
| 132 |
outputs="json",
|
| 133 |
title="Static Fingerprint Model API",
|
| 134 |
-
description=
|
| 135 |
-
|
| 136 |
-
"Click Submit to predict, or call this Space via POST /run/predict. "
|
| 137 |
-
"Server normalises using saved means/stds and returns probabilities + state."
|
| 138 |
-
)
|
| 139 |
api_name="predict"
|
| 140 |
)
|
| 141 |
# ---------------------------------------------
|
|
|
|
| 128 |
# ---------- DEFINE GRADIO INTERFACE ----------
|
| 129 |
iface = gr.Interface(
|
| 130 |
fn=predict_from_json,
|
| 131 |
+
inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"),
|
| 132 |
outputs="json",
|
| 133 |
title="Static Fingerprint Model API",
|
| 134 |
+
description="POST a dict of your 21 ratios.",
|
| 135 |
+
# 👇 add this line
|
|
|
|
|
|
|
|
|
|
| 136 |
api_name="predict"
|
| 137 |
)
|
| 138 |
# ---------------------------------------------
|