Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def predict_intensity(img: Image.Image):
|
|
| 48 |
with torch.no_grad():
|
| 49 |
intensity = model(tensor).item()
|
| 50 |
category = classify_cyclone(intensity)
|
| 51 |
-
return f"{intensity:.2f}
|
| 52 |
|
| 53 |
# ------------------------ Gradio UI ------------------------
|
| 54 |
with gr.Blocks() as demo:
|
|
|
|
| 48 |
with torch.no_grad():
|
| 49 |
intensity = model(tensor).item()
|
| 50 |
category = classify_cyclone(intensity)
|
| 51 |
+
return f"{intensity:.2f} Knots", category
|
| 52 |
|
| 53 |
# ------------------------ Gradio UI ------------------------
|
| 54 |
with gr.Blocks() as demo:
|