HLasse commited on
Commit
4ddc7ae
·
1 Parent(s): a177196
Files changed (2) hide show
  1. app.py +32 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -223,3 +223,35 @@ extracted_metrics = td.extract_metrics(
223
  """,
224
  language="python",
225
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
223
  """,
224
  language="python",
225
  )
226
+
227
+ #######
228
+ # FAQ #
229
+ #######
230
+
231
+ st.subheader("Frequently Asked Questions (FAQ)")
232
+
233
+ with st.expander("What does the 'Split by newline' option do?"):
234
+ st.write(
235
+ """
236
+ When the `Split by newline` option is `enabled`, the metrics calculation is
237
+ performed separately for each paragraph. I.e. whenever there's a line break,
238
+ we split the text.
239
+
240
+ When this option is `disabled`, the entire text is processed at once.
241
+ """
242
+ )
243
+
244
+ with st.expander(
245
+ "Why do I get a warning/error message for certain languages or model sizes?"
246
+ ):
247
+ st.write(
248
+ """
249
+ Some combinations of languages, model sizes, and metrics are not currently supported in the app.
250
+ While we *are* working on this, you may currently see a red box
251
+ with an error message after clicking `Apply`.
252
+
253
+ If you need this language and/or model size to work for your project,
254
+ please open an [issue](https://github.com/HLasse/textdescriptives_app/issues).
255
+ This may cause us to prioritize supporting your use case.
256
+ """
257
+ )
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- textdescriptives>=2.4.4
2
  streamlit>=1.21.0
3
  watchdog
4
  https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.5.0/en_core_web_lg-3.5.0.tar.gz
 
1
+ textdescriptives>=2.6.1
2
  streamlit>=1.21.0
3
  watchdog
4
  https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.5.0/en_core_web_lg-3.5.0.tar.gz