Spaces:
Sleeping
Sleeping
File size: 685 Bytes
c995694 f1b4c27 c995694 f1b4c27 c995694 8a48ded |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
---
title: Codebert Base Mlm
emoji: 💬
colorFrom: yellow
colorTo: purple
sdk: gradio
sdk_version: 5.42.0
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_scopes:
- inference-api
license: mit
short_description: 'codebert-base-mlm: a fill-in-middle/masked language model'
---
A CodeBERT Masked Language Model demo using [Gradio](https://gradio.app) and [Transformers](https://huggingface.co/docs/transformers). This app predicts masked tokens in code snippets.
## Usage
Enter code with `<mask>` tokens where you want predictions:
- `def <mask>(x, y): return x + y`
- `import <mask>`
- `for i in <mask>(10):`
The model will suggest the most likely tokens to fill in the mask.
|