Spaces:
Sleeping
Sleeping
Zhaohan Meng
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ def index():
|
|
314 |
else:
|
315 |
drug_seq = drug_input
|
316 |
|
317 |
-
elif "
|
318 |
protein_seq = request.form.get("protein_sequence", "")
|
319 |
drug_seq = request.form.get("drug_sequence", "")
|
320 |
if protein_seq and drug_seq:
|
@@ -445,10 +445,10 @@ 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="
|
449 |
-
<button class="btn btn-primary" type="
|
450 |
</div>
|
451 |
-
<button class="btn btn-neutral" style="width:100%" type="
|
452 |
</form>
|
453 |
|
454 |
{% if structure_seq %}
|
|
|
314 |
else:
|
315 |
drug_seq = drug_input
|
316 |
|
317 |
+
elif "inference" in request.form:
|
318 |
protein_seq = request.form.get("protein_sequence", "")
|
319 |
drug_seq = request.form.get("drug_sequence", "")
|
320 |
if protein_seq and drug_seq:
|
|
|
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="submit" name="confirm_structure">Confirm</button>
|
449 |
+
<button class="btn btn-primary" type="submit" name="inference">Inference</button>
|
450 |
</div>
|
451 |
+
<button class="btn btn-neutral" style="width:100%" type="submit" name="clear">Clear</button>
|
452 |
</form>
|
453 |
|
454 |
{% if structure_seq %}
|