sagawa commited on
Commit
104ce05
·
verified ·
1 Parent(s): 176c28c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 f"Predicted Stability using {model_choice} for {organism_choice}: Example Output with sequence {output}..."
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: {cfg.sequence_col}</h3>
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>