Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|