egumasa commited on
Commit
5ab7929
1 Parent(s): af5d4ec

version 0.2

Browse files
Files changed (2) hide show
  1. demo.py +2 -2
  2. requirements.txt +2 -1
demo.py CHANGED
@@ -28,11 +28,11 @@ st.set_page_config(page_title="ENGAGEMENT analyzer (beta ver 0.1)",
28
 
29
  @st.cache(allow_output_mutation=True)
30
  def load_model(spacy_model):
31
- nlp = spacy.load("en_engagement_RoBERTa_combined")
32
  return (nlp)
33
 
34
 
35
- nlp = load_model("en_engagement_RoBERTa_combined")
36
 
37
  doc = nlp(
38
  'Welcome! Probably this is one of the few attempts to teach a machine how to read the discourse...! Although it is not perfect, you should be able to get a good place to start for your stance-taking analyses. The result will be presented here.'
 
28
 
29
  @st.cache(allow_output_mutation=True)
30
  def load_model(spacy_model):
31
+ nlp = spacy.load(spacy_model)
32
  return (nlp)
33
 
34
 
35
+ nlp = load_model("en_engagement_RoBERTa_context_flz")
36
 
37
  doc = nlp(
38
  'Welcome! Probably this is one of the few attempts to teach a machine how to read the discourse...! Although it is not perfect, you should be able to get a good place to start for your stance-taking analyses. The result will be presented here.'
requirements.txt CHANGED
@@ -2,4 +2,5 @@ spacy>=3.3.1
2
  spacy_streamlit
3
 
4
 
5
- https://huggingface.co/egumasa/en_engagement_RoBERTa_combined/resolve/main/en_engagement_RoBERTa_combined-any-py3-none-any.whl
 
 
2
  spacy_streamlit
3
 
4
 
5
+ # https://huggingface.co/egumasa/en_engagement_RoBERTa_combined/resolve/main/en_engagement_RoBERTa_combined-any-py3-none-any.whl
6
+ https://huggingface.co/egumasa/en_engagement_RoBERTa_context_flz/resolve/main/en_engagement_RoBERTa_context_flz-any-py3-none-any.whl