Spaces:
Runtime error
Runtime error
Small fix
Browse files
app.py
CHANGED
|
@@ -22,10 +22,10 @@ def load_data():
|
|
| 22 |
users_fg.select(features=["user_id", "snapshot_time"]), on=["user_id", "snapshot_time"]).join(
|
| 23 |
subreddits_fg.select(features=["subreddit_id", "snapshot_time"]), on=["subreddit_id", "snapshot_time"])
|
| 24 |
df = full_join.read()
|
| 25 |
-
df.to_pickle("df_dashboard.pkl") # TODO
|
| 26 |
except Exception as e:
|
| 27 |
warn("Could not load data from feature store (most likely due to Port issues with Hopsworks). Trying to load same data that is stored with the model. Full exception:")
|
| 28 |
warn(str(e))
|
|
|
|
| 29 |
|
| 30 |
# Load model including the generated images and evaluation scores
|
| 31 |
mr = project.get_model_registry()
|
|
|
|
| 22 |
users_fg.select(features=["user_id", "snapshot_time"]), on=["user_id", "snapshot_time"]).join(
|
| 23 |
subreddits_fg.select(features=["subreddit_id", "snapshot_time"]), on=["subreddit_id", "snapshot_time"])
|
| 24 |
df = full_join.read()
|
|
|
|
| 25 |
except Exception as e:
|
| 26 |
warn("Could not load data from feature store (most likely due to Port issues with Hopsworks). Trying to load same data that is stored with the model. Full exception:")
|
| 27 |
warn(str(e))
|
| 28 |
+
df = None
|
| 29 |
|
| 30 |
# Load model including the generated images and evaluation scores
|
| 31 |
mr = project.get_model_registry()
|