libokj commited on
Commit
ff39ec5
·
1 Parent(s): bde10b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1288,14 +1288,14 @@ def create_html_report(df, file=None, task=None, opts=(), progress=gr.Progress(t
1288
  # Add alert emoji for sequence identity below 0.85
1289
  if unique_df['Max. Sequence Identity to Training Targets'].iloc[0] < 0.85:
1290
  unique_df['Max. Sequence Identity to Training Targets'] = (
1291
- f'{unique_df["Max. Sequence Identity to Training Targets"]:.3f} ⚠️'
1292
  )
1293
 
1294
  if 'Max. Tanimoto Similarity to Training Compounds' in unique_df.columns:
1295
  # Add alert emoji for sequence identity below 0.85
1296
  if unique_df['Max. Tanimoto Similarity to Training Compounds'].iloc[0] < 0.85:
1297
  unique_df['Max. Tanimoto Similarity to Training Compounds'] = (
1298
- f'{unique_df["Max. Tanimoto Similarity to Training Compounds"]:.3f} ⚠️'
1299
  )
1300
 
1301
  if any(unique_df.columns.isin(bool_cols)):
 
1288
  # Add alert emoji for sequence identity below 0.85
1289
  if unique_df['Max. Sequence Identity to Training Targets'].iloc[0] < 0.85:
1290
  unique_df['Max. Sequence Identity to Training Targets'] = (
1291
+ unique_df['Max. Sequence Identity to Training Targets'].apply(lambda x: f'{x:.3f} ⚠️')
1292
  )
1293
 
1294
  if 'Max. Tanimoto Similarity to Training Compounds' in unique_df.columns:
1295
  # Add alert emoji for sequence identity below 0.85
1296
  if unique_df['Max. Tanimoto Similarity to Training Compounds'].iloc[0] < 0.85:
1297
  unique_df['Max. Tanimoto Similarity to Training Compounds'] = (
1298
+ unique_df['Max. Tanimoto Similarity to Training Compounds'].apply(lambda x: f'{x:.3f} ⚠️')
1299
  )
1300
 
1301
  if any(unique_df.columns.isin(bool_cols)):