FrankWanger commited on
Commit
c4683fa
·
1 Parent(s): 8397456

Added link to paper and repo

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -277,7 +277,7 @@ def predict(state, conc1, flow_rate1, voltage1, solvent1, conc2, flow_rate2, vol
277
  usr_level = "a beginner."
278
  elif auc_value > 1.30:
279
  usr_level = "an intermediate user."
280
- elif auc_value > 0.60:
281
  usr_level = "an advanced user."
282
  else:
283
  usr_level = "... come on, you must have cheated (or you are extremely lucky)!"
@@ -350,7 +350,7 @@ def prepare_results_for_download(results):
350
  return output_path
351
 
352
  # Application description
353
- description = "<h3>Welcome, challenger!</h3><p> If you think you may perform better than <strong>CCBO</strong>, try this interactive game to optimize electrospray! Rules are simple: <ul><li>Examine carefully the initial experiments on the right (or below on your phone), remember, your target size is <u><i><strong>3.000 um</strong></i></u></li><li>Be aware, experiment may <u><i><strong>fail</strong></i></u> due to incompatible parameters. You want to avoid those conditions.</li><li>Propose your parameters, you have <strong>2</strong> chances in each round, use them wisely!</li><li>Click <strong>Submit</strong> to see the results, reflect and improve your selection!</li><li>Repeat the process for <strong>5</strong> rounds to see if you can beat CCBO!</li></ul></p><p>Your data will not be stored, so feel free to play again, good luck!</p>"
354
 
355
  # Create Gradio interface
356
  with gr.Blocks() as demo:
@@ -381,7 +381,7 @@ with gr.Blocks() as demo:
381
  with gr.Row():
382
  #make submit btn highlight color
383
  submit_btn = gr.Button("🚀 Submit", variant="primary")
384
- reset_btn = gr.Button("🔄 Reset")
385
  download_btn = gr.Button("📥 Download Results", visible=False)
386
 
387
  # Moved file output component below the buttons
 
277
  usr_level = "a beginner."
278
  elif auc_value > 1.30:
279
  usr_level = "an intermediate user."
280
+ elif auc_value > 0.90:
281
  usr_level = "an advanced user."
282
  else:
283
  usr_level = "... come on, you must have cheated (or you are extremely lucky)!"
 
350
  return output_path
351
 
352
  # Application description
353
+ description = "<h3>Welcome, challenger! 🎉</h3><p> If you think you may perform better than <strong>CCBO</strong>, try this interactive game to optimize electrospray!</p><p> Rules are simple:</p> <ul><li>🔍 Examine! The initial experiments are on the right (or below on your phone), remember, your target size is <u><i><strong>3.000 um</strong></i></u></li><li>⚠️ Be aware! Experiment may <u><i><strong>fail</strong></i></u> due to incompatible parameters. You want to avoid those conditions.</li><li>💡 Propose! Set your parameters, you have <strong>2</strong> chances in each round, use them wisely!</li><li>🚀 <strong>Submit</strong> to see the results, reflect and improve your selection!</li><li>🔄 Repeat! Run the process for <strong>5</strong> rounds to see if you can beat CCBO!</li></ul></p><p>Your data will not be stored, so feel free to play again, good luck! 🍀</p><p>Impressed by CCBO? Check our <a href='https://github.com/FrankWanger/CCBO'>implementation</a> and <a href='https://arxiv.org/abs/2411.10471'>paper!</a></p>"
354
 
355
  # Create Gradio interface
356
  with gr.Blocks() as demo:
 
381
  with gr.Row():
382
  #make submit btn highlight color
383
  submit_btn = gr.Button("🚀 Submit", variant="primary")
384
+ reset_btn = gr.Button("Reset")
385
  download_btn = gr.Button("📥 Download Results", visible=False)
386
 
387
  # Moved file output component below the buttons