Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
•
738a3b3
1
Parent(s):
791069a
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ 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"]
|
@@ -11,6 +12,6 @@ with demo:
|
|
11 |
b1 = gr.Button("Run ProtGPT2")
|
12 |
b2 = gr.Button("Predicted structure")
|
13 |
|
14 |
-
b1.click(
|
15 |
|
16 |
demo.launch()
|
|
|
2 |
import jax
|
3 |
|
4 |
demo = gr.Blocks()
|
5 |
+
def speech_to_text():
|
6 |
+
return "Test"
|
7 |
with demo:
|
8 |
text = gr.Textbox()
|
9 |
seqs= ["DSDAJSKDPAKSDPKPEKPKEPKDPAD", "MKTPKPSKPDKAPSKFKRNGKMSODAPS;DPALSPFKOIFMENENOLMAPSDASPFMKOVMFEOM"]
|
|
|
12 |
b1 = gr.Button("Run ProtGPT2")
|
13 |
b2 = gr.Button("Predicted structure")
|
14 |
|
15 |
+
b1.click(speech_to_text, inputs=text, outputs=seqs)
|
16 |
|
17 |
demo.launch()
|