Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
3 |
|
4 |
def greet(name):
|
5 |
|
6 |
-
|
7 |
-
|
8 |
|
9 |
#sf_input = tokenizer(name, return_tensors="pt")
|
10 |
# beam search
|
|
|
3 |
|
4 |
def greet(name):
|
5 |
|
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
|