simonduerr commited on
Commit
1fe68a8
1 Parent(s): 6c3c1b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -1,9 +1,16 @@
1
  import gradio as gr
2
  import jax
3
 
4
- print(jax.__version__)
5
- def greet(name):
6
- return "Hello " + name + "!!"
7
 
8
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
- iface.launch()
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import jax
3
 
4
+ demo = gr.Blocks()
 
 
5
 
6
+ with demo:
7
+ text = gr.Textbox()
8
+ seqs= ["DSDAJSKDPAKSDPKPEKPKEPKDPAD", "MKTPKPSKPDKAPSKFKRNGKMSODAPS;DPALSPFKOIFMENENOLMAPSDASPFMKOVMFEOM"]
9
+ seqChoice = gr.Radio()
10
+
11
+ b1 = gr.Button("Run ProtGPT2")
12
+ b2 = gr.Button("Predicted structure")
13
+
14
+ b1.click("", inputs=text, outputs=seqs)
15
+
16
+ demo.launch()