Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
a612c2d
1
Parent(s):
1f20830
Update app.py
Browse files
app.py
CHANGED
@@ -107,20 +107,19 @@ model2 = joblib.load(model_dir2+ "/model_tempmin_new.pkl")
|
|
107 |
|
108 |
########################################################
|
109 |
# Gradio Interface
|
110 |
-
demo = gr.Interface(fn=greet, inputs = "text", outputs="text")
|
111 |
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
# days.change(greet, days, output)
|
124 |
|
125 |
|
126 |
if __name__ == "__main__":
|
|
|
107 |
|
108 |
########################################################
|
109 |
# Gradio Interface
|
110 |
+
#demo = gr.Interface(fn=greet, inputs = "text", outputs="text")
|
111 |
|
112 |
+
with gr.Blocks() as demo:
|
113 |
+
with gr.Row():
|
114 |
+
with gr.Column():
|
115 |
+
days = gr.Slider(
|
116 |
+
label="How many days do you want to predict the temperature of? ", value=1, minimum=1, maximum=15, step=1
|
117 |
+
)
|
118 |
+
with gr.Column():
|
119 |
+
output = gr.Textbox(
|
120 |
+
label="Predicted results: "
|
121 |
+
)
|
122 |
+
days.change(greet, days, output)
|
|
|
123 |
|
124 |
|
125 |
if __name__ == "__main__":
|