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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -107,20 +107,20 @@ 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
+ # 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__":