Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,18 +24,18 @@ def predict_rainfall(Dew_Point, Pressure, Gust_Speed, RH, Wind_Direction,
|
|
| 24 |
|
| 25 |
# Gradio Interface
|
| 26 |
inputs = [
|
| 27 |
-
gr.
|
| 28 |
-
gr.
|
| 29 |
-
gr.
|
| 30 |
-
gr.
|
| 31 |
-
gr.
|
| 32 |
-
gr.
|
| 33 |
-
gr.
|
| 34 |
-
gr.
|
| 35 |
-
gr.
|
| 36 |
-
gr.
|
| 37 |
]
|
| 38 |
-
output = gr.
|
| 39 |
|
| 40 |
gr.Interface(fn=predict_rainfall, inputs=inputs, outputs=output, title="Rainfall Prediction").launch()
|
| 41 |
|
|
|
|
| 24 |
|
| 25 |
# Gradio Interface
|
| 26 |
inputs = [
|
| 27 |
+
gr.Number(label="Dew Point"),
|
| 28 |
+
gr.Number(label="Pressure"),
|
| 29 |
+
gr.Number(label="Gust Speed"),
|
| 30 |
+
gr.Number(label="Relative Humidity"),
|
| 31 |
+
gr.Number(label="Wind Direction"),
|
| 32 |
+
gr.Number(label="Wind Speed"),
|
| 33 |
+
gr.Number(label="Temperature"),
|
| 34 |
+
gr.Number(label="Rained"),
|
| 35 |
+
gr.Number(label="Water Content"),
|
| 36 |
+
gr.Number(label="Solar Radiation")
|
| 37 |
]
|
| 38 |
+
output = gr.Textbox(label="Prediction")
|
| 39 |
|
| 40 |
gr.Interface(fn=predict_rainfall, inputs=inputs, outputs=output, title="Rainfall Prediction").launch()
|
| 41 |
|