File size: 417 Bytes
50fcaf6
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#%%
from gradio_client import Client

#%%
# client = Client("https://huggingface.co/spaces/GaganaMD/Protein-Structure-Prediction")
client = Client("http://localhost:7860")

# %%
result = client.predict(
    "MALWMRLLPLLALLALWGPDPAAAFVNQHLCGSHLVEALYLVCGERGFFYTPKTRREAEDLQVGQVELGGGPGAGSLQPLALEGSLQKRGIVEQCCTSICSLYQLENYCN",	# str in 'sequence' Textbox component
    api_name="/esm2_embeddings")

# %%
result