Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,14 +75,14 @@ def init_DK_seed_frame():
|
|
75 |
def init_FD_seed_frame():
|
76 |
collection = db["FD_MLB_seed_frame"]
|
77 |
cursor = collection.find()
|
78 |
-
|
79 |
-
|
|
|
80 |
|
81 |
return FD_seed
|
82 |
|
83 |
@st.cache_data
|
84 |
def convert_df(array):
|
85 |
-
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
86 |
array = pd.DataFrame(array, columns=column_names)
|
87 |
return df.to_csv().encode('utf-8')
|
88 |
|
|
|
75 |
def init_FD_seed_frame():
|
76 |
collection = db["FD_MLB_seed_frame"]
|
77 |
cursor = collection.find()
|
78 |
+
|
79 |
+
raw_display = pd.DataFrame(list(cursor))
|
80 |
+
FD_seed = pd.to_numpy(raw_display)
|
81 |
|
82 |
return FD_seed
|
83 |
|
84 |
@st.cache_data
|
85 |
def convert_df(array):
|
|
|
86 |
array = pd.DataFrame(array, columns=column_names)
|
87 |
return df.to_csv().encode('utf-8')
|
88 |
|