Spaces:
Running
Running
Commit
•
f88f685
1
Parent(s):
d349a81
Update app.py
Browse files
app.py
CHANGED
@@ -1134,25 +1134,25 @@ with proteinMPNN:
|
|
1134 |
with gr.Tabs():
|
1135 |
with gr.TabItem("Input"):
|
1136 |
inp = gr.Textbox(
|
1137 |
-
placeholder="PDB Code or upload file below", label="Input structure"
|
1138 |
)
|
1139 |
-
file = gr.File(file_count="single"
|
1140 |
|
1141 |
with gr.TabItem("Settings"):
|
1142 |
with gr.Row():
|
1143 |
-
designed_chain = gr.Textbox(value="A", label="Designed chain"
|
1144 |
fixed_chain = gr.Textbox(
|
1145 |
-
placeholder="Use commas to fix multiple chains", label="Fixed chain"
|
1146 |
)
|
1147 |
with gr.Row():
|
1148 |
num_seqs = gr.Slider(
|
1149 |
-
minimum=1, maximum=15, value=1, step=1, label="Number of sequences"
|
1150 |
)
|
1151 |
sampling_temp = gr.Radio(
|
1152 |
choices=[0.1, 0.15, 0.2, 0.25, 0.3],
|
1153 |
value=0.1,
|
1154 |
label="Sampling temperature",
|
1155 |
-
|
1156 |
)
|
1157 |
gr.Markdown(
|
1158 |
""" Sampling temperature for amino acids, `T=0.0` means taking argmax, `T>>1.0` means sample randomly. Suggested values `0.1, 0.15, 0.2, 0.25, 0.3`. Higher values will lead to more diversity.
|
@@ -1168,14 +1168,14 @@ with proteinMPNN:
|
|
1168 |
],
|
1169 |
label="Model",
|
1170 |
value="v_48_020",
|
1171 |
-
|
1172 |
)
|
1173 |
backbone_noise = gr.Dropdown(
|
1174 |
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0,
|
1175 |
-
|
1176 |
)
|
1177 |
with gr.Row():
|
1178 |
-
homomer = gr.Checkbox(value=False, label="Homomer?"
|
1179 |
gr.Markdown(
|
1180 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1181 |
)
|
@@ -1315,6 +1315,7 @@ with proteinMPNN:
|
|
1315 |
seq_dict,
|
1316 |
mol,
|
1317 |
],
|
|
|
1318 |
)
|
1319 |
chosen_seq.change(
|
1320 |
updateseq,
|
|
|
1134 |
with gr.Tabs():
|
1135 |
with gr.TabItem("Input"):
|
1136 |
inp = gr.Textbox(
|
1137 |
+
placeholder="PDB Code or upload file below", label="Input structure"
|
1138 |
)
|
1139 |
+
file = gr.File(file_count="single")
|
1140 |
|
1141 |
with gr.TabItem("Settings"):
|
1142 |
with gr.Row():
|
1143 |
+
designed_chain = gr.Textbox(value="A", label="Designed chain")
|
1144 |
fixed_chain = gr.Textbox(
|
1145 |
+
placeholder="Use commas to fix multiple chains", label="Fixed chain"
|
1146 |
)
|
1147 |
with gr.Row():
|
1148 |
num_seqs = gr.Slider(
|
1149 |
+
minimum=1, maximum=15, value=1, step=1, label="Number of sequences"
|
1150 |
)
|
1151 |
sampling_temp = gr.Radio(
|
1152 |
choices=[0.1, 0.15, 0.2, 0.25, 0.3],
|
1153 |
value=0.1,
|
1154 |
label="Sampling temperature",
|
1155 |
+
|
1156 |
)
|
1157 |
gr.Markdown(
|
1158 |
""" Sampling temperature for amino acids, `T=0.0` means taking argmax, `T>>1.0` means sample randomly. Suggested values `0.1, 0.15, 0.2, 0.25, 0.3`. Higher values will lead to more diversity.
|
|
|
1168 |
],
|
1169 |
label="Model",
|
1170 |
value="v_48_020",
|
1171 |
+
|
1172 |
)
|
1173 |
backbone_noise = gr.Dropdown(
|
1174 |
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0,
|
1175 |
+
|
1176 |
)
|
1177 |
with gr.Row():
|
1178 |
+
homomer = gr.Checkbox(value=False, label="Homomer?")
|
1179 |
gr.Markdown(
|
1180 |
"for correct symmetric tying lenghts of homomer chains should be the same"
|
1181 |
)
|
|
|
1315 |
seq_dict,
|
1316 |
mol,
|
1317 |
],
|
1318 |
+
api_name = "proteinmpnn"
|
1319 |
)
|
1320 |
chosen_seq.change(
|
1321 |
updateseq,
|