Spaces:
Runtime error
Runtime error
AhmedSSoliman
commited on
Commit
•
0e0cbbc
1
Parent(s):
ab04584
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import transformers
|
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
import gradio as gr
|
5 |
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("AhmedSSoliman/MarianCG-
|
7 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("AhmedSSoliman/MarianCG-
|
8 |
|
9 |
def generate_code(NL):
|
10 |
inputs = tokenizer(NL, padding="max_length", truncation=True, max_length=512, return_tensors="pt")
|
|
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
import gradio as gr
|
5 |
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
|
7 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
|
8 |
|
9 |
def generate_code(NL):
|
10 |
inputs = tokenizer(NL, padding="max_length", truncation=True, max_length=512, return_tensors="pt")
|