Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/
|
18 |
model2 = AutoModelForMaskedLM.from_pretrained("roberta-base")
|
19 |
|
20 |
|
21 |
-
with st.expander('BigSalmon/
|
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')
|