jiawenchim
commited on
Commit
•
d6bf0e6
1
Parent(s):
b3e204b
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def predict_energy(f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13):
|
|
29 |
|
30 |
output = model.predict(input_feature.reshape(1,1,-1))
|
31 |
output = output[0][0]
|
32 |
-
return
|
33 |
# if input_feature is not None:
|
34 |
# if f1 == "Decision Trees":
|
35 |
# model = dtc.predict(input_feature)
|
@@ -100,7 +100,7 @@ inputs_app = [gr.Slider(0,12, step=1, label='Month', value=11),
|
|
100 |
# Building the Gradio Interface
|
101 |
weather_predictor_app = gr.Interface(fn=predict_energy,
|
102 |
inputs=inputs_app,
|
103 |
-
outputs="
|
104 |
# allow_flagging="manual",
|
105 |
# live=True,
|
106 |
# examples = [["Decision Trees", 7,4,2,5,3,2,100,95,76,1010,1008,1004,10,9,4,13,6,0,6,229,1997,1],
|
|
|
29 |
|
30 |
output = model.predict(input_feature.reshape(1,1,-1))
|
31 |
output = output[0][0]
|
32 |
+
return output
|
33 |
# if input_feature is not None:
|
34 |
# if f1 == "Decision Trees":
|
35 |
# model = dtc.predict(input_feature)
|
|
|
100 |
# Building the Gradio Interface
|
101 |
weather_predictor_app = gr.Interface(fn=predict_energy,
|
102 |
inputs=inputs_app,
|
103 |
+
outputs="number",
|
104 |
# allow_flagging="manual",
|
105 |
# live=True,
|
106 |
# examples = [["Decision Trees", 7,4,2,5,3,2,100,95,76,1010,1008,1004,10,9,4,13,6,0,6,229,1997,1],
|