Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def predict_solar_insolation(year, month, day, hour):
|
|
| 34 |
return round(float(prediction[0][0]), 3) if float(prediction[0][0])>10 else 0
|
| 35 |
|
| 36 |
# Gradio client
|
| 37 |
-
app = gr.
|
| 38 |
inputs=[gr.Number(label="Year"),
|
| 39 |
gr.Number(label="Month"),
|
| 40 |
gr.Number(label="Day"),
|
|
|
|
| 34 |
return round(float(prediction[0][0]), 3) if float(prediction[0][0])>10 else 0
|
| 35 |
|
| 36 |
# Gradio client
|
| 37 |
+
app = gr.Interface(fn=predict_solar_insolation,
|
| 38 |
inputs=[gr.Number(label="Year"),
|
| 39 |
gr.Number(label="Month"),
|
| 40 |
gr.Number(label="Day"),
|