Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,6 +26,7 @@ def loading_models(model='roberta-base'):
|
|
| 26 |
def infer(text):
|
| 27 |
# global nlp
|
| 28 |
return nlp(text+' '+nlp.tokenizer.mask_token)
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
@st.cache(allow_output_mutation=True,
|
|
|
|
| 26 |
def infer(text):
|
| 27 |
# global nlp
|
| 28 |
return nlp(text+' '+nlp.tokenizer.mask_token)
|
| 29 |
+
|
| 30 |
|
| 31 |
|
| 32 |
@st.cache(allow_output_mutation=True,
|