Spaces:
Running
Running
from gradio_client import Client | |
client = Client("https://knowledgator-chemicalconverters.hf.space/--replicas/ucig0/") | |
result = client.predict( | |
"CCO", # str in 'Enter your chemical name' Textbox component | |
"SMILES2IUPAC", # Literal['SMILES2IUPAC', 'IUPAC2SMILES', 'IUPAC style prediction'] in 'Choose method to convert chemical names' Radio component | |
"BASE", # Literal['BASE', 'SYSTEMATIC', 'TRADITIONAL'] in 'If SMILES to IUPAC, choose desired IUPAC style' Radio component | |
True, # bool in 'Validate with molecular similarity' Checkbox component | |
True, # bool in 'Plot molecule' Checkbox component | |
api_name="/predict" | |
) | |
print(result) |