Yin Fang
commited on
Commit
Β·
1ca5378
1
Parent(s):
227b864
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def sim(input_smile, output_smile):
|
|
58 |
else: return None
|
59 |
|
60 |
|
61 |
-
def
|
62 |
tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen")
|
63 |
model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/MolGen")
|
64 |
|
@@ -167,7 +167,6 @@ def opt_process(opt_input):
|
|
167 |
# iface.launch()
|
168 |
|
169 |
with gr.Blocks() as demo:
|
170 |
-
init_triple_input()
|
171 |
gr.Markdown("# MolGen: Molecular Language Model as Multi-task Generator")
|
172 |
|
173 |
with gr.Tabs():
|
|
|
58 |
else: return None
|
59 |
|
60 |
|
61 |
+
def gen_process(gen_input):
|
62 |
tokenizer = AutoTokenizer.from_pretrained("zjunlp/MolGen")
|
63 |
model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/MolGen")
|
64 |
|
|
|
167 |
# iface.launch()
|
168 |
|
169 |
with gr.Blocks() as demo:
|
|
|
170 |
gr.Markdown("# MolGen: Molecular Language Model as Multi-task Generator")
|
171 |
|
172 |
with gr.Tabs():
|