Spaces:
Sleeping
Sleeping
elli-teu
commited on
Commit
·
6f35e8c
1
Parent(s):
e9b9952
Added hopsworks_api_key
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ TIMESTAMP_FILE = "last_download_time.txt"
|
|
15 |
def connect_to_hopsworks():
|
16 |
st.write("Connecting to Hopsworks...")
|
17 |
project_name = "id2223AirQuality"
|
18 |
-
|
19 |
-
project = hopsworks.login(project="id2223AirQuality")
|
20 |
return project
|
21 |
|
22 |
# Fetch data from Hopsworks feature group
|
|
|
15 |
def connect_to_hopsworks():
|
16 |
st.write("Connecting to Hopsworks...")
|
17 |
project_name = "id2223AirQuality"
|
18 |
+
HOPSWORKS_API_KEY = os.getenv("HOPSWORKS_API_KEY")
|
19 |
+
project = hopsworks.login(project="id2223AirQuality", api_key_value=HOPSWORKS_API_KEY)
|
20 |
return project
|
21 |
|
22 |
# Fetch data from Hopsworks feature group
|