AhmedSSoliman commited on
Commit
0e0cbbc
1 Parent(s): ab04584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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-NL-to-Code")
7
- model = AutoModelForSeq2SeqLM.from_pretrained("AhmedSSoliman/MarianCG-NL-to-Code")
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")