sadgaj commited on
Commit
81c11f2
1 Parent(s): 7b3398a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ def greet(name):
6
  tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen")
7
  model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/MolGen")
8
 
9
- #sf_input = tokenizer(name, return_tensors="pt")
10
  # beam search
11
  #molecules = model.generate(input_ids=sf_input["input_ids"],
12
  #sf_output = [tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True).replace(" ","") for g in molecules]
 
6
  tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen")
7
  model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/MolGen")
8
 
9
+ sf_input = tokenizer(name, return_tensors="pt")
10
  # beam search
11
  #molecules = model.generate(input_ids=sf_input["input_ids"],
12
  #sf_output = [tokenizer.decode(g, skip_special_tokens=True, clean_up_tokenization_spaces=True).replace(" ","") for g in molecules]