jfaustin commited on
Commit
b21645a
·
1 Parent(s): d6a8f4f

explain scores

Browse files
Files changed (1) hide show
  1. folding_studio_demo/app.py +5 -3
folding_studio_demo/app.py CHANGED
@@ -261,9 +261,11 @@ def create_correlation_tab():
261
  }
262
  return descriptions.get(score, "No description available for this score.")
263
 
264
- gr.Markdown(
265
- value=lambda: get_score_description(correlation_column.value),
266
- every=correlation_column
 
 
267
  )
268
  with gr.Column():
269
  correlation_plot = gr.Plot(label="Correlation with binding affinity")
 
261
  }
262
  return descriptions.get(score, "No description available for this score.")
263
 
264
+ score_description = gr.Markdown(get_score_description(correlation_column.value))
265
+ correlation_column.change(
266
+ fn=lambda x: get_score_description(x),
267
+ inputs=correlation_column,
268
+ outputs=score_description
269
  )
270
  with gr.Column():
271
  correlation_plot = gr.Plot(label="Correlation with binding affinity")