Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def loading_models(model='roberta-base'):
|
|
| 22 |
suppress_st_warning=True,
|
| 23 |
hash_funcs={'tokenizers.Tokenizer': hash_func, 'tokenizers.AddedToken': hash_func})
|
| 24 |
def infer(text):
|
| 25 |
-
global nlp
|
| 26 |
return nlp(text+' '+nlp.tokenizer.mask_token)
|
| 27 |
|
| 28 |
|
|
|
|
| 22 |
suppress_st_warning=True,
|
| 23 |
hash_funcs={'tokenizers.Tokenizer': hash_func, 'tokenizers.AddedToken': hash_func})
|
| 24 |
def infer(text):
|
| 25 |
+
# global nlp
|
| 26 |
return nlp(text+' '+nlp.tokenizer.mask_token)
|
| 27 |
|
| 28 |
|