Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def small(text,model=model_small,tokenizer=tokenizer_small):
|
|
32 |
|
33 |
|
34 |
def mask_generation(text,model=model_large,tokenizer=tokenizer_large):
|
35 |
-
if(len(text)<
|
36 |
text = text+'.'
|
37 |
return small(text)
|
38 |
inputs = ["Mask Generation: " + text.lower()+'.']
|
|
|
32 |
|
33 |
|
34 |
def mask_generation(text,model=model_large,tokenizer=tokenizer_large):
|
35 |
+
if(len(text)<200):
|
36 |
text = text+'.'
|
37 |
return small(text)
|
38 |
inputs = ["Mask Generation: " + text.lower()+'.']
|