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

demo = gr.Blocks()
def speech_to_text():
    return "Test"
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(speech_to_text, inputs=text, outputs=seqs)

demo.launch()