Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ from model import get_model_tokenizer_classifier
|
|
| 19 |
from errors import TranscriptError
|
| 20 |
|
| 21 |
st.set_page_config(
|
| 22 |
-
page_title='
|
| 23 |
page_icon='🤖',
|
| 24 |
layout='wide',
|
| 25 |
# initial_sidebar_state="expanded",
|
|
@@ -65,12 +65,12 @@ YT_VIDEO_REGEX = r'''(?x)^
|
|
| 65 |
|
| 66 |
|
| 67 |
# Faster caching system for predictions (No need to hash)
|
| 68 |
-
@st.
|
| 69 |
def create_prediction_cache():
|
| 70 |
return {}
|
| 71 |
|
| 72 |
|
| 73 |
-
@st.
|
| 74 |
def create_function_cache():
|
| 75 |
return {}
|
| 76 |
|
|
|
|
| 19 |
from errors import TranscriptError
|
| 20 |
|
| 21 |
st.set_page_config(
|
| 22 |
+
page_title='PromoDetect',
|
| 23 |
page_icon='🤖',
|
| 24 |
layout='wide',
|
| 25 |
# initial_sidebar_state="expanded",
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
# Faster caching system for predictions (No need to hash)
|
| 68 |
+
@st.cache_data(persist=True, allow_output_mutation=True)
|
| 69 |
def create_prediction_cache():
|
| 70 |
return {}
|
| 71 |
|
| 72 |
|
| 73 |
+
@st.cache_data(persist=True, allow_output_mutation=True)
|
| 74 |
def create_function_cache():
|
| 75 |
return {}
|
| 76 |
|