Maria Tsilimos commited on
Commit
471a133
·
unverified ·
1 Parent(s): c0119c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -35,8 +35,8 @@ expander = st.expander("**Important notes on the 4-English Named Entity Recognit
35
  expander.write('''
36
  **Named Entities:** This 4-English Named Entity Recognition Web App predicts four (4) labels (“PER: person”, “LOC: location”, “ORG: organization”, “MISC: miscellaneous”). Results are presented in an easy-to-read table, visualized in an interactive tree map, pie chart, and bar chart, and are available for download along with a Glossary of tags.
37
 
38
- **How to Use:** Paste your text or URL. Then, click the 'Results' button to extract and tag entities in your text data.
39
-
40
  **Usage Limits:** You can request results up to 10 times.
41
 
42
  **Customization:** To change the app's background color to white or black, click the three-dot menu on the right-hand side of your app, go to Settings and then Choose app theme, colors and fonts.
@@ -246,3 +246,5 @@ if source_type:
246
 
247
  except requests.exceptions.RequestException as e:
248
  st.error(f"Error fetching the URL: {e}. Please check the URL and your internet connection.")
 
 
 
35
  expander.write('''
36
  **Named Entities:** This 4-English Named Entity Recognition Web App predicts four (4) labels (“PER: person”, “LOC: location”, “ORG: organization”, “MISC: miscellaneous”). Results are presented in an easy-to-read table, visualized in an interactive tree map, pie chart, and bar chart, and are available for download along with a Glossary of tags.
37
 
38
+ **How to Use:** Paste a URL, and then press Enter. If you type or paste text, just press Ctrl + Enter.
39
+
40
  **Usage Limits:** You can request results up to 10 times.
41
 
42
  **Customization:** To change the app's background color to white or black, click the three-dot menu on the right-hand side of your app, go to Settings and then Choose app theme, colors and fonts.
 
246
 
247
  except requests.exceptions.RequestException as e:
248
  st.error(f"Error fetching the URL: {e}. Please check the URL and your internet connection.")
249
+
250
+ st.write(f"Number of times you requested results: **{st.session_state['source_type_attempts']}/{max_attempts}**")