esmfold / client.py
Witold Wydmański
feat: Add get_esm2_embeddings function
8ee7dbf
raw
history blame
373 Bytes
#%%
from gradio_client import Client
#%%
# client = Client("https://wwydmanski-esmfold.hf.space/")
client = Client("http://localhost:7860")
# %%
result = client.predict(
"MALWMRLLPLLALLALWGPDPAAAFVNQHLCGSHLVEALYLVCGERGFFYTPKTRREAEDLQVGQVELGGGPGAGSLQPLALEGSLQKRGIVEQCCTSICSLYQLENYCN", # str in 'sequence' Textbox component
api_name="/esm2_embeddings")
# %%
result