Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
unmasker = pipeline('fill-mask', model='
|
| 5 |
|
| 6 |
def fill_mask(text):
|
| 7 |
unmasked = unmasker(text)
|
|
@@ -79,4 +79,4 @@ footer {display:none !important}
|
|
| 79 |
"""
|
| 80 |
|
| 81 |
demo = gr.Interface(fn=fill_mask, inputs=gr.Textbox(lines=1, label="Input"), outputs=gr.Label(label="Output"),title="Fill Mask | Data Science Dojo", theme="light", examples=examples, css=css)
|
| 82 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
unmasker = pipeline('fill-mask', model='bert-base-uncased')
|
| 5 |
|
| 6 |
def fill_mask(text):
|
| 7 |
unmasked = unmasker(text)
|
|
|
|
| 79 |
"""
|
| 80 |
|
| 81 |
demo = gr.Interface(fn=fill_mask, inputs=gr.Textbox(lines=1, label="Input"), outputs=gr.Label(label="Output"),title="Fill Mask | Data Science Dojo", theme="light", examples=examples, css=css)
|
| 82 |
+
demo.launch()
|