BigSalmon commited on
Commit
07e1249
·
1 Parent(s): 9bd4265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,11 +14,11 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
14
 
15
  from transformers import AutoTokenizer, AutoModelForMaskedLM
16
  tokenizer = AutoTokenizer.from_pretrained("roberta-large")
17
- model = AutoModelForMaskedLM.from_pretrained("BigSalmon/FormalRobertaa")
18
  model2 = AutoModelForMaskedLM.from_pretrained("roberta-base")
19
 
20
 
21
- with st.expander('BigSalmon/FormalRobertaa'):
22
  with st.form(key='my_form'):
23
  prompt = st.text_area(label='Enter Text. Put <mask> where you want the model to fill in the blank. You can use more than one at a time.')
24
  submit_button = st.form_submit_button(label='Submit')
 
14
 
15
  from transformers import AutoTokenizer, AutoModelForMaskedLM
16
  tokenizer = AutoTokenizer.from_pretrained("roberta-large")
17
+ model = AutoModelForMaskedLM.from_pretrained("BigSalmon/FormalRobertaaa")
18
  model2 = AutoModelForMaskedLM.from_pretrained("roberta-base")
19
 
20
 
21
+ with st.expander('BigSalmon/FormalRobertaaa'):
22
  with st.form(key='my_form'):
23
  prompt = st.text_area(label='Enter Text. Put <mask> where you want the model to fill in the blank. You can use more than one at a time.')
24
  submit_button = st.form_submit_button(label='Submit')