Spaces:
Runtime error
Runtime error
import gradio as gr | |
from BpeTokenizer import bpe_tokenizer | |
# def tem(name, num = 3): | |
# return name + num | |
# iface = gr.Interface(fn=tem, inputs=["text", "text"], outputs="text") | |
iface = gr.Interface( | |
fn = bpe_tokenizer, | |
inputs=[ | |
gr.Textbox(label="SMILES"), | |
], | |
outputs="text" | |
) | |
iface.launch() | |