Fix indent
Browse files
app.py
CHANGED
|
@@ -8,14 +8,14 @@ def mask(text):
|
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
gr.Markdown("BERT Test - Zircon.tech")
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
demo.launch(debug=True)
|
| 20 |
|
| 21 |
# # Load the model and tokenizer
|
|
|
|
| 8 |
|
| 9 |
with gr.Blocks() as demo:
|
| 10 |
gr.Markdown("BERT Test - Zircon.tech")
|
| 11 |
+
with gr.Column(scale=1):
|
| 12 |
+
textbox_mask = gr.Textbox(label="Give me a sentance and use the word [MASK] to predict what will go there")
|
| 13 |
+
mask_button = gr.Button("Predict")
|
| 14 |
+
textbox_mask_output = gr.Textbox()
|
| 15 |
|
| 16 |
+
mask_button.click(fn=mask,
|
| 17 |
+
inputs = textbox_mask,
|
| 18 |
+
outputs = textbox_mask_output)
|
| 19 |
demo.launch(debug=True)
|
| 20 |
|
| 21 |
# # Load the model and tokenizer
|