Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdad-dev committed Jan 1, 2022
1 parent 3fb9d32 commit b5bde3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def expensive_compute(images):
return images_matrix, cos_sim


@st.cache
@st.cache(allow_output_mutation=True)
def pre_recommend(cossim_path, model_path):
model = tf.keras.models.load_model(model_path)
cos_sim = pd.read_pickle(cossim_path)
Expand All @@ -87,7 +87,7 @@ def pre_recommend(cossim_path, model_path):

# =============================================================================

st.markdown('<h4>Recomendation Results: /h4>', unsafe_allow_html=True)
st.markdown('<h4>Recomendation Results: </h4>', unsafe_allow_html=True)
print('recom_reuslts', recom_reuslts)
print('===================================================')
print('recom_scores', recom_scores)
Expand Down

0 comments on commit b5bde3a

Please sign in to comment.