Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from backports.zoneinfo import ZoneInfo
|
3 |
from datetime import datetime, timedelta, timezone
|
4 |
import pickle
|
5 |
import sklearn
|
@@ -125,16 +125,16 @@ with gr.Blocks() as demo:
|
|
125 |
currentDay = datetime.now().day
|
126 |
currentMonth = datetime.now().month
|
127 |
currentYear = datetime.now().year
|
128 |
-
dt = datetime(currentYear, currentMonth, currentDay, tzinfo=ZoneInfo("Asia/Riyadh"))
|
129 |
-
fulltime = str(dt)
|
130 |
ADD = 0
|
131 |
-
try:
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
except:
|
137 |
-
|
138 |
with gr.Row():
|
139 |
gr.Markdown("# 🌧️☁️☀️KSA Weather prediction ☀️☁️🌧️\n**Day, Hour, and Minute** are set to **Asia/Riyadh** current time by default but can be changed")
|
140 |
with gr.Box():
|
|
|
1 |
import gradio as gr
|
2 |
+
#from backports.zoneinfo import ZoneInfo
|
3 |
from datetime import datetime, timedelta, timezone
|
4 |
import pickle
|
5 |
import sklearn
|
|
|
125 |
currentDay = datetime.now().day
|
126 |
currentMonth = datetime.now().month
|
127 |
currentYear = datetime.now().year
|
128 |
+
#dt = datetime(currentYear, currentMonth, currentDay, tzinfo=ZoneInfo("Asia/Riyadh"))
|
129 |
+
#fulltime = str(dt)
|
130 |
ADD = 0
|
131 |
+
# try:
|
132 |
+
# if "+" in fulltime:
|
133 |
+
# ADD = int(fulltime.split("+")[1].split(":")[0])
|
134 |
+
# elif "-" in fulltime:
|
135 |
+
# ADD = int(fulltime.split("-")[1].split(":")[0]) * -1
|
136 |
+
# except:
|
137 |
+
# pass
|
138 |
with gr.Row():
|
139 |
gr.Markdown("# 🌧️☁️☀️KSA Weather prediction ☀️☁️🌧️\n**Day, Hour, and Minute** are set to **Asia/Riyadh** current time by default but can be changed")
|
140 |
with gr.Box():
|