jie1 commited on
Commit
b31426e
1 Parent(s): a0303d8

Create new file

Browse files
Files changed (1) hide show
  1. app.py +30 -0
app.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from Sort_Scores import *
3
+ from Preinput_Merge import *
4
+
5
+
6
+ with gr.Blocks() as demo:
7
+ gr.Markdown("Welcome using this demo.")
8
+ with gr.Tab("Sort Scores"):
9
+ with gr.Row():
10
+ file1_input = gr.File()
11
+ file1_output = gr.File()
12
+ file1_button = gr.Button("Sort")
13
+ with gr.Tab("Pre Merge"):
14
+ with gr.Row():
15
+ file2_input1 = gr.File(label="smi_file")
16
+ file2_input2 = gr.File(label="seq_file")
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
+ file1_button.click(Sort_Scores, inputs=file1_input, outputs=file1_output)
25
+ file2_button1.click(Strip, inputs=file2_input2, outputs=file2_output)
26
+ file2_button2.click(Merge, inputs=[file2_input1, file2_input2], outputs=file2_output)
27
+
28
+
29
+ if __name__ == "__main__":
30
+ demo.launch()