Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ import dateutil.parser as dp
|
|
9 |
import pandas as pd
|
10 |
from huggingface_hub import hf_hub_url, cached_download
|
11 |
import time
|
|
|
12 |
import datetime as datetime
|
13 |
|
14 |
def get_row():
|
@@ -39,7 +40,7 @@ def get_row():
|
|
39 |
vis = json_response_smhi["timeSeries"][0]["parameters"][9]["values"][0] # Visibility
|
40 |
|
41 |
# Use current time
|
42 |
-
referenceTime =
|
43 |
|
44 |
row ={"referenceTime": referenceTime,
|
45 |
"temperature": t,
|
|
|
9 |
import pandas as pd
|
10 |
from huggingface_hub import hf_hub_url, cached_download
|
11 |
import time
|
12 |
+
from datetime import date
|
13 |
import datetime as datetime
|
14 |
|
15 |
def get_row():
|
|
|
40 |
vis = json_response_smhi["timeSeries"][0]["parameters"][9]["values"][0] # Visibility
|
41 |
|
42 |
# Use current time
|
43 |
+
referenceTime = date.fromtimestamp(time.time())
|
44 |
|
45 |
row ={"referenceTime": referenceTime,
|
46 |
"temperature": t,
|