Mustafa Al Hamad commited on
Commit
d34e24d
1 Parent(s): 21e0f4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -101,13 +101,6 @@ cities = ['Assir',
101
  'Riyadh',
102
  'Tabuk']
103
 
104
- currentSecond= datetime.now().second
105
- currentMinute = datetime.now().minute
106
- currentHour = datetime.now().hour
107
- currentDay = datetime.now().day
108
- currentMonth = datetime.now().month
109
- currentYear = datetime.now().year
110
-
111
  dt = datetime(currentYear, currentMonth, currentDay, tzinfo=ZoneInfo("Asia/Riyadh"))
112
  fulltime = str(dt)
113
  ADD = 0
@@ -135,7 +128,14 @@ def predict(city,month,year,day,hour,minute,weathertype,wind,hu,baro,vis):
135
  elif temp <= 9:
136
  emoji = "🥶"
137
  return gr.Markdown.update("# 🌡️ {0} C {1}🌡️".format(temp,emoji))
 
138
  with gr.Blocks() as demo:
 
 
 
 
 
 
139
  with gr.Row():
140
  gr.Markdown("# 🌧️☁️☀️KSA Weather prediction ☀️☁️🌧️\n**Day, Hour, and Minute** are set to **Asia/Riyadh** current time by default but can be changed")
141
  with gr.Box():
 
101
  'Riyadh',
102
  'Tabuk']
103
 
 
 
 
 
 
 
 
104
  dt = datetime(currentYear, currentMonth, currentDay, tzinfo=ZoneInfo("Asia/Riyadh"))
105
  fulltime = str(dt)
106
  ADD = 0
 
128
  elif temp <= 9:
129
  emoji = "🥶"
130
  return gr.Markdown.update("# 🌡️ {0} C {1}🌡️".format(temp,emoji))
131
+
132
  with gr.Blocks() as demo:
133
+ currentSecond= datetime.now().second
134
+ currentMinute = datetime.now().minute
135
+ currentHour = datetime.now().hour
136
+ currentDay = datetime.now().day
137
+ currentMonth = datetime.now().month
138
+ currentYear = datetime.now().year
139
  with gr.Row():
140
  gr.Markdown("# 🌧️☁️☀️KSA Weather prediction ☀️☁️🌧️\n**Day, Hour, and Minute** are set to **Asia/Riyadh** current time by default but can be changed")
141
  with gr.Box():