Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
4923013
1
Parent(s):
62cfbd8
Update app.py
Browse files
app.py
CHANGED
@@ -110,6 +110,7 @@ model2 = joblib.load(model_dir2+ "/model_tempmin_new.pkl")
|
|
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(
|
@@ -119,8 +120,8 @@ with gr.Blocks() as demo:
|
|
119 |
output,
|
120 |
label="Predicted results: ",
|
121 |
)
|
|
|
122 |
|
123 |
-
days.change(greet, days, output)
|
124 |
|
125 |
if __name__ == "__main__":
|
126 |
demo.launch()
|
|
|
110 |
#demo = gr.Interface(fn=greet, inputs = "text", outputs="text")
|
111 |
|
112 |
with gr.Blocks() as demo:
|
113 |
+
output = ""
|
114 |
with gr.Row():
|
115 |
with gr.Column():
|
116 |
days = gr.Slider(
|
|
|
120 |
output,
|
121 |
label="Predicted results: ",
|
122 |
)
|
123 |
+
days.change(greet, days, output)
|
124 |
|
|
|
125 |
|
126 |
if __name__ == "__main__":
|
127 |
demo.launch()
|