Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
·
1fe68a8
1
Parent(s):
6c3c1b2
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
import jax
|
3 |
|
4 |
-
|
5 |
-
def greet(name):
|
6 |
-
return "Hello " + name + "!!"
|
7 |
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|