Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def greet(prompt="أنا", maxTokens=50):
|
|
13 |
text = prompt +" [MASK]"
|
14 |
for i in range(int(maxTokens)):
|
15 |
result = fill_mask(text)
|
16 |
-
r =
|
17 |
if r not in generated_text_set:
|
18 |
print(r)
|
19 |
text = r + " [MASK]"
|
|
|
13 |
text = prompt +" [MASK]"
|
14 |
for i in range(int(maxTokens)):
|
15 |
result = fill_mask(text)
|
16 |
+
r = random.choice(result)["sequence"]
|
17 |
if r not in generated_text_set:
|
18 |
print(r)
|
19 |
text = r + " [MASK]"
|