Campfireman commited on
Commit
a612c2d
1 Parent(s): 1f20830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
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
- #with gr.Blocks() as demo:
113
- # output = ""
114
- # with gr.Row():
115
- # with gr.Column():
116
- # days = gr.Slider(
117
- # label="How many days do you want to predict the temperature of? ", value=1, minimum=1, maximum=15, step=1
118
- # )
119
- # gr.Textbox(
120
- # output,
121
- # label="Predicted results: ",
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__":