Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,8 @@ def main(use_default, file):
|
|
40 |
base = r'./RESULT/'
|
41 |
img_path = []
|
42 |
for i in range(1, 11):
|
43 |
-
|
|
|
44 |
# else:
|
45 |
# 根据上传的文件执行相应的逻辑
|
46 |
# 请根据您的实际需求自行编写代码
|
@@ -55,7 +56,8 @@ inputs = [
|
|
55 |
File(label="上传文件", optional=True)
|
56 |
]
|
57 |
outputs = [
|
58 |
-
Image(label="DAY" + str(day + 1), type='filepath') for
|
|
|
59 |
]
|
60 |
|
61 |
iface = gr.Interface(fn=main, inputs=inputs, outputs=outputs)
|
|
|
40 |
base = r'./RESULT/'
|
41 |
img_path = []
|
42 |
for i in range(1, 11):
|
43 |
+
temp_path = base + 'DAY' + str(i) + '.png'
|
44 |
+
img_path.append(temp_path.name)
|
45 |
# else:
|
46 |
# 根据上传的文件执行相应的逻辑
|
47 |
# 请根据您的实际需求自行编写代码
|
|
|
56 |
File(label="上传文件", optional=True)
|
57 |
]
|
58 |
outputs = [
|
59 |
+
Image(label="DAY" + str(day + 1), type='filepath') for
|
60 |
+
day in range(10)
|
61 |
]
|
62 |
|
63 |
iface = gr.Interface(fn=main, inputs=inputs, outputs=outputs)
|