Spaces:
Sleeping
Sleeping
jennzhuge
commited on
Commit
·
a0e49d5
1
Parent(s):
2c039db
hi
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ with gr.Blocks() as demo:
|
|
68 |
gr.Markdown("Enter a DNA sequence and the coordinates at which its sample was taken to get a genus prediction. Click 'I'm feeling lucky' to see a prediction for a random sequence.")
|
69 |
|
70 |
# Collect inputs for app (DNA and location)
|
71 |
-
with gr.
|
72 |
with gr.Column():
|
73 |
inp_dna = gr.Textbox(label="DNA", placeholder="e.g. AACAATGTA... (min 200 and max 660 characters)")
|
74 |
|
@@ -79,7 +79,7 @@ with gr.Blocks() as demo:
|
|
79 |
inp_lng = gr.Textbox(label="Longitude", placeholder="e.g. -58.68281")
|
80 |
|
81 |
with gr.Row():
|
82 |
-
btn_run = gr.Button("
|
83 |
|
84 |
btn_defaults = gr.Button("I'm feeling lucky")
|
85 |
btn_defaults.click(fn=set_default_inputs, outputs=[inp_dna, inp_lat, inp_lng])
|
@@ -91,10 +91,10 @@ with gr.Blocks() as demo:
|
|
91 |
genus_out = gr.Dataframe(headers=["DNA Only Pred Genus", "DNA Only Prob", "DNA & Env Pred Genus", "DNA & Env Prob"])
|
92 |
btn_run.click(fn=predict_genus, inputs=[inp_dna, inp_lat, inp_lng], outputs=genus_out)
|
93 |
|
94 |
-
with gr.Tab('DNA Embedding Space
|
95 |
gr.Markdown("If the highest genus probability is very low for your DNA sequence, we can still examine the DNA embedding of the sequence in relation to known samples for clues.")
|
96 |
-
|
97 |
-
with gr.Row():
|
98 |
with gr.Column():
|
99 |
gr.Markdown("Plot of your DNA sequence among other known species clusters.")
|
100 |
|
|
|
68 |
gr.Markdown("Enter a DNA sequence and the coordinates at which its sample was taken to get a genus prediction. Click 'I'm feeling lucky' to see a prediction for a random sequence.")
|
69 |
|
70 |
# Collect inputs for app (DNA and location)
|
71 |
+
with gr.Row():
|
72 |
with gr.Column():
|
73 |
inp_dna = gr.Textbox(label="DNA", placeholder="e.g. AACAATGTA... (min 200 and max 660 characters)")
|
74 |
|
|
|
79 |
inp_lng = gr.Textbox(label="Longitude", placeholder="e.g. -58.68281")
|
80 |
|
81 |
with gr.Row():
|
82 |
+
btn_run = gr.Button("Predict")
|
83 |
|
84 |
btn_defaults = gr.Button("I'm feeling lucky")
|
85 |
btn_defaults.click(fn=set_default_inputs, outputs=[inp_dna, inp_lat, inp_lng])
|
|
|
91 |
genus_out = gr.Dataframe(headers=["DNA Only Pred Genus", "DNA Only Prob", "DNA & Env Pred Genus", "DNA & Env Prob"])
|
92 |
btn_run.click(fn=predict_genus, inputs=[inp_dna, inp_lat, inp_lng], outputs=genus_out)
|
93 |
|
94 |
+
with gr.Tab('DNA Embedding Space Visualizer'):
|
95 |
gr.Markdown("If the highest genus probability is very low for your DNA sequence, we can still examine the DNA embedding of the sequence in relation to known samples for clues.")
|
96 |
+
|
97 |
+
with gr.Row() as row:
|
98 |
with gr.Column():
|
99 |
gr.Markdown("Plot of your DNA sequence among other known species clusters.")
|
100 |
|