fossbk commited on
Commit
e42e16e
·
verified ·
1 Parent(s): c09180b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -150,5 +150,16 @@ with gr.Blocks(css=css) as demo:
150
  outputs=[result, seed],
151
  )
152
 
 
 
 
 
 
 
 
 
 
 
 
153
  if __name__ == "__main__":
154
  demo.launch()
 
150
  outputs=[result, seed],
151
  )
152
 
153
+ import os
154
+
155
+ # Danh sách thư mục cần tạo
156
+ folders = ["model", "data", "outputs", "logs"]
157
+
158
+ for folder in folders:
159
+ os.makedirs(folder, exist_ok=True) # exist_ok=True để tránh lỗi nếu thư mục đã tồn tại
160
+
161
+ print("Thư mục đã được tạo thành công!")
162
+
163
+
164
  if __name__ == "__main__":
165
  demo.launch()