julse commited on
Commit
855fbf8
·
verified ·
1 Parent(s): 24b1044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def process_prediction(fasta_file, rna_sequence, protein_sequence, input_method)
202
  # Calculate default Threshold (minimum non-zero value)
203
  non_zero_values = contact_matrix[contact_matrix > 0]
204
  default_threshold = float(np.min(non_zero_values)) if len(non_zero_values) > 0 else 0.0
205
- max_threshold = round(float(np.max(contact_matrix), 2))
206
 
207
  # Create initial heatmap with default Threshold
208
  heatmap = create_heatmap(contact_matrix, rna_labels, protein_labels, rna_id, protein_id, default_threshold)
 
202
  # Calculate default Threshold (minimum non-zero value)
203
  non_zero_values = contact_matrix[contact_matrix > 0]
204
  default_threshold = float(np.min(non_zero_values)) if len(non_zero_values) > 0 else 0.0
205
+ max_threshold = round(float(np.max(contact_matrix)), 2)
206
 
207
  # Create initial heatmap with default Threshold
208
  heatmap = create_heatmap(contact_matrix, rna_labels, protein_labels, rna_id, protein_id, default_threshold)