oucgc1996 commited on
Commit
af7c643
1 Parent(s): c6256d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -91,13 +91,20 @@ def kmeans(ligend,n_clusters,n_num):
91
  shutil.rmtree(pdb_folder)
92
  os.mkdir(pdb_folder)
93
  return 'outputs.csv'
94
-
 
 
 
 
 
95
  iface = gr.Interface(fn=kmeans,
 
96
  inputs=["file",
97
  gr.Textbox(label="n_clusters", placeholder="2", lines=1),
98
  gr.Textbox(label="Times", placeholder="2", lines=1)
99
  ],
100
- outputs= "file"
 
101
  )
102
  iface.launch()
103
 
 
91
  shutil.rmtree(pdb_folder)
92
  os.mkdir(pdb_folder)
93
  return 'outputs.csv'
94
+
95
+
96
+ with open(
97
+ metadata_root.joinpath("pyuul_kmeans.md"), "r"
98
+ ) as f:
99
+ description = f.read()
100
  iface = gr.Interface(fn=kmeans,
101
+ title="Pyuul_Kmeans"
102
  inputs=["file",
103
  gr.Textbox(label="n_clusters", placeholder="2", lines=1),
104
  gr.Textbox(label="Times", placeholder="2", lines=1)
105
  ],
106
+ outputs= "file",
107
+ description=description
108
  )
109
  iface.launch()
110