Next
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def change_choices():
|
4 |
names = []
|
5 |
for name in os.listdir(weight_root):
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
names = []
|
4 |
+
for name in os.listdir(weight_root):
|
5 |
+
if name.endswith(".pth"):
|
6 |
+
names.append(name)
|
7 |
+
index_paths = []
|
8 |
+
for root, dirs, files in os.walk(index_root, topdown=False):
|
9 |
+
for name in files:
|
10 |
+
if name.endswith(".index") and "trained" not in name:
|
11 |
+
index_paths.append("%s/%s" % (root, name))
|
12 |
+
|
13 |
+
|
14 |
def change_choices():
|
15 |
names = []
|
16 |
for name in os.listdir(weight_root):
|