i_vorobyev
commited on
Commit
·
6839858
1
Parent(s):
2b0e9a1
add multiple input
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from igfold import IgFoldRunner
|
3 |
import os
|
4 |
import random
|
|
|
5 |
|
6 |
def read_mol(molpath):
|
7 |
with open(molpath, "r") as fp:
|
@@ -98,7 +99,12 @@ def pred_seq(seq):
|
|
98 |
html = "<p>ERROR! Not valid sequence</p>"
|
99 |
return (html)
|
100 |
|
|
|
|
|
|
|
101 |
iface = gr.Interface(fn=pred_seq,
|
102 |
-
inputs=
|
103 |
outputs=gr.HTML())
|
|
|
|
|
104 |
iface.launch(share = True)
|
|
|
2 |
from igfold import IgFoldRunner
|
3 |
import os
|
4 |
import random
|
5 |
+
from gt4sd.properties.proteins import PROTEIN_PROPERTY_PREDICTOR_FACTORY
|
6 |
|
7 |
def read_mol(molpath):
|
8 |
with open(molpath, "r") as fp:
|
|
|
99 |
html = "<p>ERROR! Not valid sequence</p>"
|
100 |
return (html)
|
101 |
|
102 |
+
inputs = [gr.Textbox(lines=5, label="Heavy chain"),
|
103 |
+
gr.Textbox(lines=5, label="Light chain")
|
104 |
+
]
|
105 |
iface = gr.Interface(fn=pred_seq,
|
106 |
+
inputs=inputs,
|
107 |
outputs=gr.HTML())
|
108 |
+
|
109 |
+
|
110 |
iface.launch(share = True)
|