edichief commited on
Commit
65dfe84
·
1 Parent(s): 3d22843

Fix benepar download

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -96,6 +96,7 @@ try:
96
  if "model" not in st.session_state:
97
  nlp = spacy.load("en_healthsea")
98
  st.session_state["model"] = nlp
 
99
 
100
  # Download model
101
  except LookupError:
@@ -106,7 +107,11 @@ except LookupError:
106
  if "model" not in st.session_state:
107
  nlp = spacy.load("en_healthsea")
108
  st.session_state["model"] = nlp
109
- load_state.success ("Loading complete!")
 
 
 
 
110
 
111
  # Pipeline
112
  st.markdown(central_text("⚙️ Pipeline"), unsafe_allow_html=True)
 
96
  if "model" not in st.session_state:
97
  nlp = spacy.load("en_healthsea")
98
  st.session_state["model"] = nlp
99
+ load_state.success ("Loading complete!")
100
 
101
  # Download model
102
  except LookupError:
 
107
  if "model" not in st.session_state:
108
  nlp = spacy.load("en_healthsea")
109
  st.session_state["model"] = nlp
110
+ load_state.success ("Loading complete!")
111
+
112
+ except Exception as e:
113
+ load_state.success ("Something went wrong!")
114
+ st.error(e)
115
 
116
  # Pipeline
117
  st.markdown(central_text("⚙️ Pipeline"), unsafe_allow_html=True)