Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def predict_stability(model_choice, organism_choice, pdb_file=None, sequence=Non
|
|
51 |
cfg.architecture = model_choice
|
52 |
cfg.model_path = f"sagawa/PLTNUM-{model_choice}-{cell_line}"
|
53 |
output = predict(cfg, sequence)
|
54 |
-
return
|
55 |
else:
|
56 |
return "No valid input provided."
|
57 |
|
@@ -114,7 +114,7 @@ def predict(cfg, sequence):
|
|
114 |
|
115 |
html_output = f"""
|
116 |
<div style='border: 2px solid #4CAF50; padding: 10px; border-radius: 10px;'>
|
117 |
-
<h3 style='color: #4CAF50;'>Protein: {
|
118 |
<p><strong>Stability:</strong> {outputs['raw prediction values']}</p>
|
119 |
<p><strong>Organism:</strong> {outputs['binary prediction values']}</p>
|
120 |
</div>
|
|
|
51 |
cfg.architecture = model_choice
|
52 |
cfg.model_path = f"sagawa/PLTNUM-{model_choice}-{cell_line}"
|
53 |
output = predict(cfg, sequence)
|
54 |
+
return output
|
55 |
else:
|
56 |
return "No valid input provided."
|
57 |
|
|
|
114 |
|
115 |
html_output = f"""
|
116 |
<div style='border: 2px solid #4CAF50; padding: 10px; border-radius: 10px;'>
|
117 |
+
<h3 style='color: #4CAF50;'>Protein: {sequence}</h3>
|
118 |
<p><strong>Stability:</strong> {outputs['raw prediction values']}</p>
|
119 |
<p><strong>Organism:</strong> {outputs['binary prediction values']}</p>
|
120 |
</div>
|