Spaces:
Runtime error
Runtime error
Nick Canu
commited on
Commit
·
3ca0851
1
Parent(s):
95f60bb
streamlit version rollback
Browse files
Home.py
CHANGED
@@ -139,8 +139,8 @@ def application():
|
|
139 |
###Variables
|
140 |
|
141 |
###Data
|
142 |
-
@st.
|
143 |
-
def fetch_data(
|
144 |
slim_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/slim_df.parquet.gzip?raw=true')
|
145 |
search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent%20Objects/token_search.gz?raw=true")
|
146 |
vector_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/vector_df.parquet.gzip?raw=true')
|
@@ -158,7 +158,7 @@ def application():
|
|
158 |
"[Aa]ge [Oo]f [Ee]mpires","Doctor Who"]
|
159 |
|
160 |
###Models
|
161 |
-
@st.
|
162 |
def setup_models():
|
163 |
return Title_Generator('./t5_model', slim_df), input_manager(vector_df, slim_df, search_tokens), model_control(apikey=st.secrets.key,model_id=st.secrets.model)
|
164 |
|
|
|
139 |
###Variables
|
140 |
|
141 |
###Data
|
142 |
+
@st.cache_resource
|
143 |
+
def fetch_data():
|
144 |
slim_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/slim_df.parquet.gzip?raw=true')
|
145 |
search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent%20Objects/token_search.gz?raw=true")
|
146 |
vector_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/vector_df.parquet.gzip?raw=true')
|
|
|
158 |
"[Aa]ge [Oo]f [Ee]mpires","Doctor Who"]
|
159 |
|
160 |
###Models
|
161 |
+
@st.cache_resource
|
162 |
def setup_models():
|
163 |
return Title_Generator('./t5_model', slim_df), input_manager(vector_df, slim_df, search_tokens), model_control(apikey=st.secrets.key,model_id=st.secrets.model)
|
164 |
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🦀
|
|
4 |
colorFrom: pink
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
-
sdk_version: 1.
|
8 |
app_file: Home.py
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-2.0
|
|
|
4 |
colorFrom: pink
|
5 |
colorTo: pink
|
6 |
sdk: streamlit
|
7 |
+
sdk_version: 1.19.0
|
8 |
app_file: Home.py
|
9 |
pinned: false
|
10 |
license: cc-by-nc-sa-2.0
|