Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -269,12 +269,12 @@ def predict_weather(Location, Day):
|
|
269 |
return score, message, hourly_scores
|
270 |
|
271 |
def main():
|
272 |
-
mode = gr.inputs.Radio(["Train Model", "Predict Weather"], label="Mode")
|
273 |
-
ideal_max_temp = gr.inputs.Slider(minimum=0, maximum=40, step=1, default=
|
274 |
-
ideal_min_temp = gr.inputs.Slider(minimum=0, maximum=40, step=1, default=
|
275 |
-
ideal_humidity = gr.inputs.Slider(minimum=40, maximum=100, step=1, default=
|
276 |
-
Location = gr.inputs.Textbox(placeholder="Enter your location (city name)")
|
277 |
-
Day = gr.inputs.Radio(choices=["yesterday", "today", "tomorrow"], label="Select day:")
|
278 |
|
279 |
outputs = [
|
280 |
gr.outputs.Textbox(label="Training Result"),
|
|
|
269 |
return score, message, hourly_scores
|
270 |
|
271 |
def main():
|
272 |
+
mode = gr.inputs.Radio(["Train Model", "Predict Weather"], label="Mode", default="Predict Weather")
|
273 |
+
ideal_max_temp = gr.inputs.Slider(minimum=0, maximum=40, step=1, default=25, label="Ideal max temperature (°C)")
|
274 |
+
ideal_min_temp = gr.inputs.Slider(minimum=0, maximum=40, step=1, default=18, label="Ideal min temperature (°C)")
|
275 |
+
ideal_humidity = gr.inputs.Slider(minimum=40, maximum=100, step=1, default=75, label="Ideal humidity level (%)")
|
276 |
+
Location = gr.inputs.Textbox(placeholder="Enter your location (city name)", default="bangalore")
|
277 |
+
Day = gr.inputs.Radio(choices=["yesterday", "today", "tomorrow"], label="Select day:", default="today")
|
278 |
|
279 |
outputs = [
|
280 |
gr.outputs.Textbox(label="Training Result"),
|