Spaces:
Runtime error
Runtime error
Ziyou Li
commited on
Commit
·
3bf6bd4
1
Parent(s):
9ebe60c
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +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 |
-
from datetime import
|
13 |
-
import datetime as datetime
|
14 |
|
15 |
def get_row():
|
16 |
response_tomtom = requests.get(
|
@@ -40,7 +39,7 @@ def get_row():
|
|
40 |
vis = json_response_smhi["timeSeries"][0]["parameters"][9]["values"][0] # Visibility
|
41 |
|
42 |
# Use current time
|
43 |
-
referenceTime =
|
44 |
|
45 |
row ={"referenceTime": referenceTime,
|
46 |
"temperature": t,
|
|
|
9 |
import pandas as pd
|
10 |
from huggingface_hub import hf_hub_url, cached_download
|
11 |
import time
|
12 |
+
from datetime import datetime
|
|
|
13 |
|
14 |
def get_row():
|
15 |
response_tomtom = requests.get(
|
|
|
39 |
vis = json_response_smhi["timeSeries"][0]["parameters"][9]["values"][0] # Visibility
|
40 |
|
41 |
# Use current time
|
42 |
+
referenceTime = datetime.fromtimestamp(time.time())
|
43 |
|
44 |
row ={"referenceTime": referenceTime,
|
45 |
"temperature": t,
|