Spaces:
Running
Running
jennzhuge
commited on
Commit
·
4e8c8b5
1
Parent(s):
cfbe98d
hi
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import json
|
2 |
-
|
3 |
import gradio as gr
|
4 |
|
5 |
|
@@ -18,17 +17,24 @@ with gr.Blocks() as demo:
|
|
18 |
gr.Markdown("# DNA Identifier Tool")
|
19 |
gr.Markdown("TODO short description of the tool...")
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
demo.launch()
|
|
|
1 |
import json
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
|
|
|
17 |
gr.Markdown("# DNA Identifier Tool")
|
18 |
gr.Markdown("TODO short description of the tool...")
|
19 |
|
20 |
+
with gr.Tab("Genus prediction"):
|
21 |
+
# Collect inputs for app (DNA and location)
|
22 |
+
with gr.Row():
|
23 |
+
inp_dna = gr.Textbox(label="DNA", placeholder="e.g. AACAATGTA... (will be automatically truncated to 660 characters)")
|
24 |
+
with gr.Row():
|
25 |
+
inp_lat = gr.Textbox(label="Latitude", placeholder="e.g. -3.009083")
|
26 |
+
inp_lng = gr.Textbox(label="Longitude", placeholder="e.g. -58.68281")
|
27 |
+
|
28 |
+
with gr.Row():
|
29 |
+
btn_run = gr.Button("Run")
|
30 |
+
|
31 |
+
btn_defaults = gr.Button("I'm feeling lucky")
|
32 |
+
btn_defaults.click(fn=set_default_inputs, outputs=[inp_dna, inp_lat, inp_lng])
|
33 |
+
|
34 |
+
with gr.Row():
|
35 |
+
gr.Markdown('Make plot or table for Top 5 species')
|
36 |
+
|
37 |
+
with gr.Tab('DNA Embedding Space Similarity Visualizer'):
|
38 |
+
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 or clues.")
|
39 |
|
40 |
demo.launch()
|