jie1 commited on
Commit
079ad61
1 Parent(s): 70ab9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -1,14 +1,14 @@
1
  import gradio as gr
2
- from file.Sort_Scores import *
3
- from file.Preinput_Merge import *
4
- from file.Sort_Dlkcat import *
5
- from file.Merge_Dlsc import *
6
- from file.Sort_Sco_Kcat import *
7
- from file.Plt import *
8
- # import sys
9
- # sys.path.append('../DLKcat/DeeplearningApproach/Code/example/')
10
  # from model import *
11
- from DLKcat.DeeplearningApproach.Code.prediction_for_input import *
12
 
13
  with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
14
  gr.Markdown("Welcome using this demo.")
@@ -18,7 +18,7 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
18
  gr.Markdown("I think this demo can do some things")
19
  gr.Markdown("在sort里,可以对scores文件,dlkcat文件,以及合并后的scores与dlkcat文件进行排序")
20
  gr.Markdown("Pre Merge里,可以将序列文件与smi文件进行合并,合并后可以进行dlkcat值的计算,合并前若序列文件需要处理换行符也可以对其进行处理")
21
- gr.Markdown("Merge Dlsc里,可以合并scores值文件和dlkcat文件,主义这两个文件序列需要一致")
22
  with gr.Tab("Sort"):
23
  file1_input = gr.File(label="输入相关文件")
24
  file1_output = gr.File()
@@ -53,7 +53,7 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
53
  with gr.Tab("Test"):
54
  file6_input = gr.File(label="输入相关文件")
55
  file6_output = gr.File()
56
- file6_button = gr.Button("test")
57
 
58
  with gr.Accordion("Open for More!"):
59
  gr.Markdown("Look at me...")
@@ -73,4 +73,4 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
73
  file6_button.click(test, inputs=file6_input, outputs=file6_output)
74
 
75
  if __name__ == "__main__":
76
- 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
+ from Plt import *
8
+ import sys
9
+ sys.path.append('/home/user/app/DLKcat/DeeplearningApproach/Code/example/')
10
  # from model import *
11
+ from prediction_for_input import *
12
 
13
  with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
14
  gr.Markdown("Welcome using this demo.")
 
18
  gr.Markdown("I think this demo can do some things")
19
  gr.Markdown("在sort里,可以对scores文件,dlkcat文件,以及合并后的scores与dlkcat文件进行排序")
20
  gr.Markdown("Pre Merge里,可以将序列文件与smi文件进行合并,合并后可以进行dlkcat值的计算,合并前若序列文件需要处理换行符也可以对其进行处理")
21
+ gr.Markdown("Merge Dlsc里,可以合并scores值文件和dlkcat文件,注意这两个文件序列需要一致")
22
  with gr.Tab("Sort"):
23
  file1_input = gr.File(label="输入相关文件")
24
  file1_output = gr.File()
 
53
  with gr.Tab("Test"):
54
  file6_input = gr.File(label="输入相关文件")
55
  file6_output = gr.File()
56
+ file6_button = gr.Button("Prediction_Dlkcat")
57
 
58
  with gr.Accordion("Open for More!"):
59
  gr.Markdown("Look at me...")
 
73
  file6_button.click(test, inputs=file6_input, outputs=file6_output)
74
 
75
  if __name__ == "__main__":
76
+ demo.launch()