Spaces:
Running
Running
Zhaohan Meng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -293,8 +293,8 @@ def index():
|
|
293 |
|
294 |
elif "confirm_structure" in request.form and tmp_structure_path:
|
295 |
try:
|
296 |
-
|
297 |
-
|
298 |
except Exception as e:
|
299 |
result_html = (
|
300 |
"<p style='color:red'><strong>Foldseek failed to extract sequence "
|
@@ -445,7 +445,7 @@ table.tg th{background:var(--bg);font-weight:600}
|
|
445 |
<input type="number" name="drug_idx" min="1" style="width:120px">
|
446 |
|
447 |
<div class="grid grid-2">
|
448 |
-
<button class="btn btn-primary" type="Inference" name="confirm_structure">Confirm
|
449 |
<button class="btn btn-primary" type="Inference" name="Inference">Inference</button>
|
450 |
</div>
|
451 |
<button class="btn btn-neutral" style="width:100%" type="Inference" name="clear">Clear</button>
|
|
|
293 |
|
294 |
elif "confirm_structure" in request.form and tmp_structure_path:
|
295 |
try:
|
296 |
+
parsed_seqs = get_struc_seq(FOLDSEEK_BIN, tmp_structure_path, ["A"], plddt_mask=False)["A"]
|
297 |
+
seq, foldseek_seq, structure_seq = parsed_seqs
|
298 |
except Exception as e:
|
299 |
result_html = (
|
300 |
"<p style='color:red'><strong>Foldseek failed to extract sequence "
|
|
|
445 |
<input type="number" name="drug_idx" min="1" style="width:120px">
|
446 |
|
447 |
<div class="grid grid-2">
|
448 |
+
<button class="btn btn-primary" type="Inference" name="confirm_structure">Confirm</button>
|
449 |
<button class="btn btn-primary" type="Inference" name="Inference">Inference</button>
|
450 |
</div>
|
451 |
<button class="btn btn-neutral" style="width:100%" type="Inference" name="clear">Clear</button>
|