jie1 commited on
Commit
95ef9e5
1 Parent(s): e1810a8

Update file/test.py

Browse files
Files changed (1) hide show
  1. file/test.py +10 -0
file/test.py CHANGED
@@ -5,6 +5,9 @@ from Sort_Dlkcat import *
5
  from Merge_Dlsc import *
6
  from Sort_Sco_Kcat import *
7
  from Plt import *
 
 
 
8
 
9
  with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
10
  gr.Markdown("Welcome using this demo.")
@@ -45,6 +48,11 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
45
  file5_input = gr.File(label="log_file")
46
  file5_output = gr.File()
47
  file5_button = gr.Button("Plt")
 
 
 
 
 
48
 
49
  with gr.Accordion("Open for More!"):
50
  gr.Markdown("Look at me...")
@@ -60,6 +68,8 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
60
  file4_button.click(Merge_Dlsc, inputs=[file4_input1, file4_input2], outputs=file4_output)
61
 
62
  file5_button.click(Plt, inputs=file5_input, outputs=file5_output)
 
 
63
 
64
  if __name__ == "__main__":
65
  demo.launch()
 
5
  from Merge_Dlsc import *
6
  from Sort_Sco_Kcat import *
7
  from Plt import *
8
+ import sys
9
+ sys.path.append('../DLKcat/DeeplearningApproach/Code/example/')
10
+ from prediction_for_input import *
11
 
12
  with gr.Blocks(css=".gradio-container {background-image: url('file=background.jpeg')}") as demo:
13
  gr.Markdown("Welcome using this demo.")
 
48
  file5_input = gr.File(label="log_file")
49
  file5_output = gr.File()
50
  file5_button = gr.Button("Plt")
51
+
52
+ with gr.Tab("Test"):
53
+ file6_input = gr.File(label="输入相关文件")
54
+ file6_output = gr.File()
55
+ file6_button = gr.Button("test")
56
 
57
  with gr.Accordion("Open for More!"):
58
  gr.Markdown("Look at me...")
 
68
  file4_button.click(Merge_Dlsc, inputs=[file4_input1, file4_input2], outputs=file4_output)
69
 
70
  file5_button.click(Plt, inputs=file5_input, outputs=file5_output)
71
+
72
+ file6_button.click(test, inputs=file6_input, outputs=file6_output)
73
 
74
  if __name__ == "__main__":
75
  demo.launch()