TRACES commited on
Commit
633c00d
1 Parent(s): bf96256

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -25,8 +25,8 @@ def load_models():
25
  tokenizer=AutoTokenizer.from_pretrained("usmiva/bert-deepfake-bg"))
26
 
27
  st.session_state.emotions = pipeline(task="text-classification",
28
- model=BertForSequenceClassification.from_pretrained("TRACES/emotions", use_auth_token=os.environ['ACCESS_TOKEN2'], num_labels=2),
29
- tokenizer=AutoTokenizer.from_pretrained("TRACES/emotions", use_auth_token=os.environ['ACCESS_TOKEN2']))
30
 
31
 
32
  def load_content():
@@ -159,5 +159,5 @@ else:
159
  st.write(content['disclaimer_title'][st.session_state.lang])
160
  st.write(content['disclaimer'][st.session_state.lang])
161
  if st.button(content['disclaimer_agree_text'][st.session_state.lang]):
162
- st.session_state.agree = True
163
  st.experimental_rerun()
 
25
  tokenizer=AutoTokenizer.from_pretrained("usmiva/bert-deepfake-bg"))
26
 
27
  st.session_state.emotions = pipeline(task="text-classification",
28
+ model=BertForSequenceClassification.from_pretrained("TRACES/emotions", use_auth_token=os.environ['ACCESS_TOKEN'], num_labels=2),
29
+ tokenizer=AutoTokenizer.from_pretrained("TRACES/emotions", use_auth_token=os.environ['ACCESS_TOKEN']))
30
 
31
 
32
  def load_content():
 
159
  st.write(content['disclaimer_title'][st.session_state.lang])
160
  st.write(content['disclaimer'][st.session_state.lang])
161
  if st.button(content['disclaimer_agree_text'][st.session_state.lang]):
162
+ st.session_state.agree = True
163
  st.experimental_rerun()