File size: 402 Bytes
08a8622
3766d91
08a8622
 
3766d91
 
 
 
 
 
 
 
 
 
 
ee81cd9
3766d91
 
 
fc233bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
import random



pipeline = lambda x: random.randint(0, 1)

def predict(protein_sequence: str) -> dict[str, float]:
    predictions = dict(soluble=0.42, insoluble=0.58)
    return predictions

gradio_app = gr.Interface(
    predict,
    inputs="text",
    outputs="label",
    title="Soluble or insoluble, that is the question",
)

if __name__ == "__main__":
    gradio_app.launch()