Spaces:
Runtime error
Runtime error
Download app.py from pytorch/transformers: direct link, hf CLI and curl.
- Browser
- Download file 560 Bytes
-
https://huggingface.co/spaces/pytorch/transformers/resolve/main/app.py
- Command line
-
hf download hf://spaces/pytorch/transformers/app.py
-
curl -L -o app.py https://huggingface.co/spaces/pytorch/transformers/resolve/main/app.py
560 Bytes
| import gradio as gr | |
| description = "Gradio demo for Bert. To use it, simply add your text, or click one of the examples to load them. Read more at the links below." | |
| article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1810.04805'>BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</a> | <a href='https://github.com/google-research/bert'>Github Repo</a></p>" | |
| gr.Interface.load("huggingface/bert-base-uncased", description=description, article=article, examples=[ | |
| ["Paris is the [MASK] of France."] | |
| ]).launch() |