ShreehariS754 commited on
Commit
d46c664
·
verified ·
1 Parent(s): fa3146d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.app(fn=predict_solar_insolation,
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"),