File size: 366 Bytes
f1c8a72
 
 
1fe68a8
f1c8a72
1fe68a8
 
 
791069a
1fe68a8
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
import jax

demo = gr.Blocks()

with demo:
    text = gr.Textbox()
    seqs= ["DSDAJSKDPAKSDPKPEKPKEPKDPAD", "MKTPKPSKPDKAPSKFKRNGKMSODAPS;DPALSPFKOIFMENENOLMAPSDASPFMKOVMFEOM"]
    seqChoice = gr.Radio(seqs)

    b1 = gr.Button("Run ProtGPT2")
    b2 = gr.Button("Predicted structure")

    b1.click("", inputs=text, outputs=seqs)

demo.launch()