Spaces:
Runtime error
Runtime error
Change repository name
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import re
|
|
3 |
import gradio as gr
|
4 |
from transformers import RobertaTokenizer, pipeline, AutoModelForMaskedLM
|
5 |
|
6 |
-
tokenizer = RobertaTokenizer.from_pretrained("mamiksik/
|
7 |
-
model = AutoModelForMaskedLM.from_pretrained("mamiksik/
|
8 |
pipe = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
9 |
|
10 |
|
|
|
3 |
import gradio as gr
|
4 |
from transformers import RobertaTokenizer, pipeline, AutoModelForMaskedLM
|
5 |
|
6 |
+
tokenizer = RobertaTokenizer.from_pretrained("mamiksik/CodeBERTa-commit-message-autocomplete")
|
7 |
+
model = AutoModelForMaskedLM.from_pretrained("mamiksik/CodeBERTa-commit-message-autocomplete")
|
8 |
pipe = pipeline("fill-mask", model=model, tokenizer=tokenizer)
|
9 |
|
10 |
|