Spaces:
Runtime error
Runtime error
CesarLeblanc
commited on
Commit
•
299be87
1
Parent(s):
5e56f69
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,8 @@ def masking(text, task):
|
|
54 |
model = return_model(task)
|
55 |
text += ', [MASK] [MASK]'
|
56 |
pred = model(text, top_k=1)
|
57 |
-
text = pred[
|
|
|
58 |
image = gr.Image(value="https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png")
|
59 |
return text, image
|
60 |
|
|
|
54 |
model = return_model(task)
|
55 |
text += ', [MASK] [MASK]'
|
56 |
pred = model(text, top_k=1)
|
57 |
+
text = pred["sequence"]
|
58 |
+
#text = pred[0]["sequence"]
|
59 |
image = gr.Image(value="https://www.salonlfc.com/wp-content/uploads/2018/01/image-not-found-scaled-1150x647.png")
|
60 |
return text, image
|
61 |
|