Update app.py
Browse files
app.py
CHANGED
|
@@ -1,30 +1,49 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from Sort_Scores import *
|
| 3 |
from Preinput_Merge import *
|
| 4 |
-
|
|
|
|
|
|
|
| 5 |
|
| 6 |
with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
|
| 7 |
gr.Markdown("Welcome using this demo.")
|
| 8 |
-
with gr.Tab("Sort
|
| 9 |
with gr.Row():
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
with gr.Tab("Pre Merge"):
|
| 14 |
with gr.Row():
|
| 15 |
-
file2_input1 = gr.File(label="
|
| 16 |
-
file2_input2 = gr.File(label="
|
|
|
|
| 17 |
file2_output = gr.File()
|
| 18 |
file2_button1 = gr.Button("Strip")
|
| 19 |
file2_button2 = gr.Button("Merge")
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
with gr.Accordion("Open for More!"):
|
| 22 |
gr.Markdown("Look at me...")
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
if __name__ == "__main__":
|
| 30 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from Sort_Scores import *
|
| 3 |
from Preinput_Merge import *
|
| 4 |
+
from Sort_Dlkcat import *
|
| 5 |
+
from Merge_Dlsc import *
|
| 6 |
+
from Sort_Sco_Kcat import *
|
| 7 |
|
| 8 |
with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
|
| 9 |
gr.Markdown("Welcome using this demo.")
|
| 10 |
+
with gr.Tab("Sort"):
|
| 11 |
with gr.Row():
|
| 12 |
+
file1_input1 = gr.File(label="scores_file")
|
| 13 |
+
file1_input2 = gr.File(label="dlkcat_file")
|
| 14 |
+
file1_input3 = gr.File(label="kcasco_file")
|
| 15 |
+
file1_output = gr.File()
|
| 16 |
+
file1_button1 = gr.Button("Sort Scores")
|
| 17 |
+
file1_button2 = gr.Button("Sort Dlkcat")
|
| 18 |
+
file1_button3 = gr.Button("Sort Mergekcat")
|
| 19 |
+
|
| 20 |
with gr.Tab("Pre Merge"):
|
| 21 |
with gr.Row():
|
| 22 |
+
file2_input1 = gr.File(label="strip_file")
|
| 23 |
+
file2_input2 = gr.File(label="smi_file")
|
| 24 |
+
file2_input3 = gr.File(label="seq_file")
|
| 25 |
file2_output = gr.File()
|
| 26 |
file2_button1 = gr.Button("Strip")
|
| 27 |
file2_button2 = gr.Button("Merge")
|
| 28 |
|
| 29 |
+
with gr.Tab("Merge_Dlsc"):
|
| 30 |
+
with gr.Row():
|
| 31 |
+
file4_input1 = gr.File(label="sc_file")
|
| 32 |
+
file4_input2 = gr.File(label="cat_file")
|
| 33 |
+
file4_output = gr.File()
|
| 34 |
+
file4_button = gr.Button("Merge")
|
| 35 |
+
|
| 36 |
with gr.Accordion("Open for More!"):
|
| 37 |
gr.Markdown("Look at me...")
|
| 38 |
|
| 39 |
+
file1_button1.click(Sort_Scores, inputs=file1_input1, outputs=file1_output)
|
| 40 |
+
file1_button2.click(Sort_Dlkcat, inputs=file1_input2, outputs=file1_output)
|
| 41 |
+
file1_button3.click(Sort_Sco_Kcat, inputs=file1_input3, outputs=file1_output)
|
| 42 |
+
|
| 43 |
+
file2_button1.click(Strip, inputs=file2_input1, outputs=file2_output)
|
| 44 |
+
file2_button2.click(Merge, inputs=[file2_input2, file2_input3], outputs=file2_output)
|
| 45 |
|
| 46 |
+
file4_button.click(Merge_Dlsc, inputs=[file4_input1, file4_input2], outputs=file4_output)
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
| 49 |
+
demo.launch()
|