Spaces:
Running
Running
Commit
·
8397456
1
Parent(s):
296561c
improved description
Browse files
app.py
CHANGED
@@ -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
|
354 |
|
355 |
# Create Gradio interface
|
356 |
with gr.Blocks() as demo:
|
@@ -379,8 +379,9 @@ with gr.Blocks() as demo:
|
|
379 |
|
380 |
# Group all buttons in a single row
|
381 |
with gr.Row():
|
382 |
-
|
383 |
-
|
|
|
384 |
download_btn = gr.Button("📥 Download Results", visible=False)
|
385 |
|
386 |
# Moved file output component below the buttons
|
|
|
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:
|
|
|
379 |
|
380 |
# Group all buttons in a single row
|
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
|