🐛Hmm?
Browse files- CSS/dl_display_result.css +116 -0
- files_cells/notebooks/en/auto_cleaner_en.ipynb +12 -10
- files_cells/notebooks/en/downloading_en.ipynb +5 -13
- files_cells/notebooks/en/launch_en.ipynb +5 -5
- files_cells/notebooks/en/widgets_en.ipynb +4 -4
- files_cells/notebooks/ru/auto_cleaner_ru.ipynb +11 -9
- files_cells/notebooks/ru/downloading_ru.ipynb +5 -13
- files_cells/notebooks/ru/launch_ru.ipynb +5 -5
- files_cells/notebooks/ru/widgets_ru.ipynb +4 -4
- files_cells/python/en/auto_cleaner_en.py +12 -10
- files_cells/python/en/downloading_en.py +5 -13
- files_cells/python/en/launch_en.py +5 -5
- files_cells/python/en/widgets_en.py +4 -4
- files_cells/python/ru/auto_cleaner_ru.py +11 -9
- files_cells/python/ru/downloading_ru.py +5 -13
- files_cells/python/ru/launch_ru.py +5 -5
- files_cells/python/ru/widgets_ru.py +4 -4
- modules/directory_setup.py +12 -0
- modules/setup_en.py +3 -3
- modules/setup_ru.py +3 -3
- special/dl_display_results.py +13 -148
CSS/dl_display_result.css
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* General Styles */
|
2 |
+
.header_dl,
|
3 |
+
.header_outputs_dl {
|
4 |
+
font-family: cursive;
|
5 |
+
font-size: 20px;
|
6 |
+
font-weight: bold;
|
7 |
+
text-align: center;
|
8 |
+
}
|
9 |
+
.header_dl {
|
10 |
+
color: #AC8FA5;
|
11 |
+
margin-bottom: 15px;
|
12 |
+
}
|
13 |
+
.header_outputs_dl {
|
14 |
+
color: #0083C0;
|
15 |
+
}
|
16 |
+
|
17 |
+
hr {
|
18 |
+
border-color: grey;
|
19 |
+
background-color: grey;
|
20 |
+
opacity: 0.25;
|
21 |
+
width: 1000px;
|
22 |
+
}
|
23 |
+
|
24 |
+
/* Element text style */
|
25 |
+
.widget-html {
|
26 |
+
font-family: cursive;
|
27 |
+
font-size: 14px;
|
28 |
+
color: white !important;
|
29 |
+
user-select: none;
|
30 |
+
}
|
31 |
+
|
32 |
+
|
33 |
+
/* Container style */
|
34 |
+
.container_dl {
|
35 |
+
position: relative;
|
36 |
+
flex-direction: column;
|
37 |
+
align-items: center;
|
38 |
+
background-color: #232323;
|
39 |
+
width: 1200px;
|
40 |
+
height: auto;
|
41 |
+
margin: 40px 10px 10px 10px;
|
42 |
+
padding: 10px 15px;
|
43 |
+
border-radius: 15px;
|
44 |
+
box-shadow: 0 0 50px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
|
45 |
+
transition: all 0.5s ease-in-out;
|
46 |
+
overflow: visible;
|
47 |
+
}
|
48 |
+
.container_dl::after {
|
49 |
+
position: absolute;
|
50 |
+
top: 5px;
|
51 |
+
right: 10px;
|
52 |
+
content: "ANXETY";
|
53 |
+
font-weight: bold;
|
54 |
+
font-size: 24px;
|
55 |
+
color: rgba(0, 0, 0, 0.2);
|
56 |
+
}
|
57 |
+
|
58 |
+
.result_output_dl {
|
59 |
+
flex-wrap: wrap;
|
60 |
+
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
|
61 |
+
border-radius: 8px;
|
62 |
+
background-color: #1F1F1F;
|
63 |
+
width: 95%;
|
64 |
+
padding: 10px 15px;
|
65 |
+
overflow: visible;
|
66 |
+
}
|
67 |
+
.outputs_dl {
|
68 |
+
flex-grow: 1;
|
69 |
+
flex-wrap: wrap;
|
70 |
+
background-color: #181818;
|
71 |
+
padding: 10px 15px;
|
72 |
+
border-radius: 15px;
|
73 |
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
|
74 |
+
color: #C1C1C1;
|
75 |
+
margin: 8px;
|
76 |
+
transition: all 0.15s ease-in-out;
|
77 |
+
}
|
78 |
+
|
79 |
+
/* good use of space */
|
80 |
+
.extension {
|
81 |
+
display: grid;
|
82 |
+
grid-template-columns: repeat(3, 1fr);
|
83 |
+
}
|
84 |
+
|
85 |
+
|
86 |
+
/* Animation of elements */
|
87 |
+
|
88 |
+
.container_dl,
|
89 |
+
.outputs_dl {
|
90 |
+
animation: showedResult 1s;
|
91 |
+
}
|
92 |
+
.items_dl {
|
93 |
+
animation: showedText 1s;
|
94 |
+
}
|
95 |
+
|
96 |
+
@keyframes showedResult {
|
97 |
+
0% {
|
98 |
+
transform: translate3d(0, 15%, 0);
|
99 |
+
opacity: 0;
|
100 |
+
}
|
101 |
+
100% {
|
102 |
+
transform: translate3d(0, 0, 0);
|
103 |
+
opacity: 1;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
@keyframes showedText {
|
108 |
+
0% {
|
109 |
+
transform: translate3d(-30%, 0, 0);
|
110 |
+
opacity: 0;
|
111 |
+
}
|
112 |
+
100% {
|
113 |
+
transform: translate3d(0, 0, 0);
|
114 |
+
opacity: 1;
|
115 |
+
}
|
116 |
+
}
|
files_cells/notebooks/en/auto_cleaner_en.ipynb
CHANGED
@@ -17,7 +17,9 @@
|
|
17 |
{
|
18 |
"cell_type": "code",
|
19 |
"source": [
|
20 |
-
"##~ AutoCleaner V3.
|
|
|
|
|
21 |
"\n",
|
22 |
"import os\n",
|
23 |
"import time\n",
|
@@ -27,10 +29,10 @@
|
|
27 |
"\n",
|
28 |
"\n",
|
29 |
"# Setup Env\n",
|
30 |
-
"env = os.
|
31 |
-
"root_path = os.
|
32 |
-
"webui_path = os.
|
33 |
-
"free_plan = os.
|
34 |
"\n",
|
35 |
"\n",
|
36 |
"# ==================== CSS ====================\n",
|
@@ -43,11 +45,11 @@
|
|
43 |
"\n",
|
44 |
"# ================ AutoCleaner function ================\n",
|
45 |
"directories = {\n",
|
46 |
-
" \"Images\":
|
47 |
-
" \"Models\":
|
48 |
-
" \"Vae\":
|
49 |
-
" \"LoRa\":
|
50 |
-
" \"ControlNet Models\":
|
51 |
"}\n",
|
52 |
"\n",
|
53 |
"\"\"\" functions \"\"\"\n",
|
|
|
17 |
{
|
18 |
"cell_type": "code",
|
19 |
"source": [
|
20 |
+
"##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##\n",
|
21 |
+
"\n",
|
22 |
+
"from directory_setup import models_dir, vaes_dir, control_dir, loras_dir, output_dir\n",
|
23 |
"\n",
|
24 |
"import os\n",
|
25 |
"import time\n",
|
|
|
29 |
"\n",
|
30 |
"\n",
|
31 |
"# Setup Env\n",
|
32 |
+
"env = os.getenv('ENV_NAME')\n",
|
33 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
34 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
35 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
36 |
"\n",
|
37 |
"\n",
|
38 |
"# ==================== CSS ====================\n",
|
|
|
45 |
"\n",
|
46 |
"# ================ AutoCleaner function ================\n",
|
47 |
"directories = {\n",
|
48 |
+
" \"Images\": output_dir,\n",
|
49 |
+
" \"Models\": models_dir,\n",
|
50 |
+
" \"Vae\": vaes_dir,\n",
|
51 |
+
" \"LoRa\": loras_dir,\n",
|
52 |
+
" \"ControlNet Models\": control_dir\n",
|
53 |
"}\n",
|
54 |
"\n",
|
55 |
"\"\"\" functions \"\"\"\n",
|
files_cells/notebooks/en/downloading_en.ipynb
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
"source": [
|
11 |
"##~ DOWNLOADING CODE | BY: ANXETY ~##\n",
|
12 |
"\n",
|
|
|
13 |
"from models_data import model_list, vae_list, controlnet_list\n",
|
14 |
"\n",
|
15 |
"import os\n",
|
@@ -28,10 +29,10 @@
|
|
28 |
"\n",
|
29 |
"\n",
|
30 |
"# Setup Env\n",
|
31 |
-
"env = os.
|
32 |
-
"root_path = os.
|
33 |
-
"webui_path = os.
|
34 |
-
"free_plan = os.
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# ================ LIBRARIES V2 ================\n",
|
@@ -112,15 +113,6 @@
|
|
112 |
"except:\n",
|
113 |
" start_colab = int(time.time())-5\n",
|
114 |
"\n",
|
115 |
-
"# CONFIG DIR\n",
|
116 |
-
"models_dir = f\"{webui_path}/models/Stable-diffusion\"\n",
|
117 |
-
"vaes_dir = f\"{webui_path}/models/VAE\"\n",
|
118 |
-
"embeddings_dir = f\"{webui_path}/embeddings\"\n",
|
119 |
-
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
120 |
-
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
121 |
-
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
122 |
-
"adetailer_dir = f\"{webui_path}/models/adetailer\"\n",
|
123 |
-
"\n",
|
124 |
"\n",
|
125 |
"# ================= MAIN CODE =================\n",
|
126 |
"if not os.path.exists(webui_path):\n",
|
|
|
10 |
"source": [
|
11 |
"##~ DOWNLOADING CODE | BY: ANXETY ~##\n",
|
12 |
"\n",
|
13 |
+
"from directory_setup import *\n",
|
14 |
"from models_data import model_list, vae_list, controlnet_list\n",
|
15 |
"\n",
|
16 |
"import os\n",
|
|
|
29 |
"\n",
|
30 |
"\n",
|
31 |
"# Setup Env\n",
|
32 |
+
"env = os.getenv('ENV_NAME')\n",
|
33 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
34 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
35 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
36 |
"\n",
|
37 |
"\n",
|
38 |
"# ================ LIBRARIES V2 ================\n",
|
|
|
113 |
"except:\n",
|
114 |
" start_colab = int(time.time())-5\n",
|
115 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
"\n",
|
117 |
"# ================= MAIN CODE =================\n",
|
118 |
"if not os.path.exists(webui_path):\n",
|
files_cells/notebooks/en/launch_en.ipynb
CHANGED
@@ -35,10 +35,10 @@
|
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# Setup Env\n",
|
38 |
-
"env = os.
|
39 |
-
"root_path = os.
|
40 |
-
"webui_path = os.
|
41 |
-
"free_plan = os.
|
42 |
"\n",
|
43 |
"\n",
|
44 |
"def load_settings():\n",
|
@@ -111,7 +111,7 @@
|
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
" if env == 'Kaggle':\n",
|
114 |
-
" !sed -i 's
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
|
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# Setup Env\n",
|
38 |
+
"env = os.getenv('ENV_NAME')\n",
|
39 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
40 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
41 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
42 |
"\n",
|
43 |
"\n",
|
44 |
"def load_settings():\n",
|
|
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
" if env == 'Kaggle':\n",
|
114 |
+
" !sed -i 's/\"civitai_interface\\/NSFW content\\/visible\": true,/\"civitai_interface\\/NSFW content\\/visible\": false,/' {webui_path}/ui-config.json\n",
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
files_cells/notebooks/en/widgets_en.ipynb
CHANGED
@@ -33,10 +33,10 @@
|
|
33 |
"\n",
|
34 |
"\n",
|
35 |
"# Setup Env\n",
|
36 |
-
"env = os.
|
37 |
-
"root_path = os.
|
38 |
-
"webui_path = os.
|
39 |
-
"free_plan = os.
|
40 |
"\n",
|
41 |
"\n",
|
42 |
"# ==================== CSS JS ====================\n",
|
|
|
33 |
"\n",
|
34 |
"\n",
|
35 |
"# Setup Env\n",
|
36 |
+
"env = os.getenv('ENV_NAME')\n",
|
37 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
38 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
39 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
40 |
"\n",
|
41 |
"\n",
|
42 |
"# ==================== CSS JS ====================\n",
|
files_cells/notebooks/ru/auto_cleaner_ru.ipynb
CHANGED
@@ -24,6 +24,8 @@
|
|
24 |
"source": [
|
25 |
"##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##\n",
|
26 |
"\n",
|
|
|
|
|
27 |
"import os\n",
|
28 |
"import time\n",
|
29 |
"import ipywidgets as widgets\n",
|
@@ -32,10 +34,10 @@
|
|
32 |
"\n",
|
33 |
"\n",
|
34 |
"# Setup Env\n",
|
35 |
-
"env = os.
|
36 |
-
"root_path = os.
|
37 |
-
"webui_path = os.
|
38 |
-
"free_plan = os.
|
39 |
"\n",
|
40 |
"\n",
|
41 |
"# ==================== CSS ====================\n",
|
@@ -48,11 +50,11 @@
|
|
48 |
"\n",
|
49 |
"# ================ AutoCleaner function ================\n",
|
50 |
"directories = {\n",
|
51 |
-
" \"Изображения\":
|
52 |
-
" \"Модели\":
|
53 |
-
" \"Vae\":
|
54 |
-
" \"LoRa\":
|
55 |
-
" \"ControlNet Модели\":
|
56 |
"}\n",
|
57 |
"\n",
|
58 |
"\"\"\" functions \"\"\"\n",
|
|
|
24 |
"source": [
|
25 |
"##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##\n",
|
26 |
"\n",
|
27 |
+
"from directory_setup import models_dir, vaes_dir, control_dir, loras_dir, output_dir\n",
|
28 |
+
"\n",
|
29 |
"import os\n",
|
30 |
"import time\n",
|
31 |
"import ipywidgets as widgets\n",
|
|
|
34 |
"\n",
|
35 |
"\n",
|
36 |
"# Setup Env\n",
|
37 |
+
"env = os.getenv('ENV_NAME')\n",
|
38 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
39 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
40 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
41 |
"\n",
|
42 |
"\n",
|
43 |
"# ==================== CSS ====================\n",
|
|
|
50 |
"\n",
|
51 |
"# ================ AutoCleaner function ================\n",
|
52 |
"directories = {\n",
|
53 |
+
" \"Изображения\": output_dir,\n",
|
54 |
+
" \"Модели\": models_dir,\n",
|
55 |
+
" \"Vae\": vaes_dir,\n",
|
56 |
+
" \"LoRa\": loras_dir,\n",
|
57 |
+
" \"ControlNet Модели\": control_dir\n",
|
58 |
"}\n",
|
59 |
"\n",
|
60 |
"\"\"\" functions \"\"\"\n",
|
files_cells/notebooks/ru/downloading_ru.ipynb
CHANGED
@@ -10,6 +10,7 @@
|
|
10 |
"source": [
|
11 |
"##~ DOWNLOADING CODE | BY: ANXETY ~##\n",
|
12 |
"\n",
|
|
|
13 |
"from models_data import model_list, vae_list, controlnet_list\n",
|
14 |
"\n",
|
15 |
"import os\n",
|
@@ -28,10 +29,10 @@
|
|
28 |
"\n",
|
29 |
"\n",
|
30 |
"# Setup Env\n",
|
31 |
-
"env = os.
|
32 |
-
"root_path = os.
|
33 |
-
"webui_path = os.
|
34 |
-
"free_plan = os.
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# ================ LIBRARIES V2 ================\n",
|
@@ -112,15 +113,6 @@
|
|
112 |
"except:\n",
|
113 |
" start_colab = int(time.time())-5\n",
|
114 |
"\n",
|
115 |
-
"# CONFIG DIR\n",
|
116 |
-
"models_dir = f\"{webui_path}/models/Stable-diffusion\"\n",
|
117 |
-
"vaes_dir = f\"{webui_path}/models/VAE\"\n",
|
118 |
-
"embeddings_dir = f\"{webui_path}/embeddings\"\n",
|
119 |
-
"loras_dir = f\"{webui_path}/models/Lora\"\n",
|
120 |
-
"extensions_dir = f\"{webui_path}/extensions\"\n",
|
121 |
-
"control_dir = f\"{webui_path}/models/ControlNet\"\n",
|
122 |
-
"adetailer_dir = f\"{webui_path}/models/adetailer\"\n",
|
123 |
-
"\n",
|
124 |
"\n",
|
125 |
"# ================= MAIN CODE =================\n",
|
126 |
"if not os.path.exists(webui_path):\n",
|
|
|
10 |
"source": [
|
11 |
"##~ DOWNLOADING CODE | BY: ANXETY ~##\n",
|
12 |
"\n",
|
13 |
+
"from directory_setup import *\n",
|
14 |
"from models_data import model_list, vae_list, controlnet_list\n",
|
15 |
"\n",
|
16 |
"import os\n",
|
|
|
29 |
"\n",
|
30 |
"\n",
|
31 |
"# Setup Env\n",
|
32 |
+
"env = os.getenv('ENV_NAME')\n",
|
33 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
34 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
35 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
36 |
"\n",
|
37 |
"\n",
|
38 |
"# ================ LIBRARIES V2 ================\n",
|
|
|
113 |
"except:\n",
|
114 |
" start_colab = int(time.time())-5\n",
|
115 |
"\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
"\n",
|
117 |
"# ================= MAIN CODE =================\n",
|
118 |
"if not os.path.exists(webui_path):\n",
|
files_cells/notebooks/ru/launch_ru.ipynb
CHANGED
@@ -35,10 +35,10 @@
|
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# Setup Env\n",
|
38 |
-
"env = os.
|
39 |
-
"root_path = os.
|
40 |
-
"webui_path = os.
|
41 |
-
"free_plan = os.
|
42 |
"\n",
|
43 |
"\n",
|
44 |
"def load_settings():\n",
|
@@ -111,7 +111,7 @@
|
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
" if env == 'Kaggle':\n",
|
114 |
-
" !sed -i 's
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
|
|
35 |
"\n",
|
36 |
"\n",
|
37 |
"# Setup Env\n",
|
38 |
+
"env = os.getenv('ENV_NAME')\n",
|
39 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
40 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
41 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
42 |
"\n",
|
43 |
"\n",
|
44 |
"def load_settings():\n",
|
|
|
111 |
" os.system(sed_command)\n",
|
112 |
"\n",
|
113 |
" if env == 'Kaggle':\n",
|
114 |
+
" !sed -i 's/\"civitai_interface\\/NSFW content\\/visible\": true,/\"civitai_interface\\/NSFW content\\/visible\": false,/' {webui_path}/ui-config.json\n",
|
115 |
"\n",
|
116 |
"with tunnel:\n",
|
117 |
" %cd {webui_path}\n",
|
files_cells/notebooks/ru/widgets_ru.ipynb
CHANGED
@@ -33,10 +33,10 @@
|
|
33 |
"\n",
|
34 |
"\n",
|
35 |
"# Setup Env\n",
|
36 |
-
"env = os.
|
37 |
-
"root_path = os.
|
38 |
-
"webui_path = os.
|
39 |
-
"free_plan = os.
|
40 |
"\n",
|
41 |
"\n",
|
42 |
"# ==================== CSS JS ====================\n",
|
|
|
33 |
"\n",
|
34 |
"\n",
|
35 |
"# Setup Env\n",
|
36 |
+
"env = os.getenv('ENV_NAME')\n",
|
37 |
+
"root_path = os.getenv('ROOT_PATH')\n",
|
38 |
+
"webui_path = os.getenv('WEBUI_PATH')\n",
|
39 |
+
"free_plan = os.getenv('FREE_PLAN')\n",
|
40 |
"\n",
|
41 |
"\n",
|
42 |
"# ==================== CSS JS ====================\n",
|
files_cells/python/en/auto_cleaner_en.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-
##~ AutoCleaner V3.
|
|
|
|
|
2 |
|
3 |
import os
|
4 |
import time
|
@@ -8,10 +10,10 @@ from IPython.display import display, HTML, Javascript
|
|
8 |
|
9 |
|
10 |
# Setup Env
|
11 |
-
env = os.
|
12 |
-
root_path = os.
|
13 |
-
webui_path = os.
|
14 |
-
free_plan = os.
|
15 |
|
16 |
|
17 |
# ==================== CSS ====================
|
@@ -24,11 +26,11 @@ display(HTML(f"<style>{CSS_AC}</style>"))
|
|
24 |
|
25 |
# ================ AutoCleaner function ================
|
26 |
directories = {
|
27 |
-
"Images":
|
28 |
-
"Models":
|
29 |
-
"Vae":
|
30 |
-
"LoRa":
|
31 |
-
"ControlNet Models":
|
32 |
}
|
33 |
|
34 |
""" functions """
|
|
|
1 |
+
##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##
|
2 |
+
|
3 |
+
from directory_setup import models_dir, vaes_dir, control_dir, loras_dir, output_dir
|
4 |
|
5 |
import os
|
6 |
import time
|
|
|
10 |
|
11 |
|
12 |
# Setup Env
|
13 |
+
env = os.getenv('ENV_NAME')
|
14 |
+
root_path = os.getenv('ROOT_PATH')
|
15 |
+
webui_path = os.getenv('WEBUI_PATH')
|
16 |
+
free_plan = os.getenv('FREE_PLAN')
|
17 |
|
18 |
|
19 |
# ==================== CSS ====================
|
|
|
26 |
|
27 |
# ================ AutoCleaner function ================
|
28 |
directories = {
|
29 |
+
"Images": output_dir,
|
30 |
+
"Models": models_dir,
|
31 |
+
"Vae": vaes_dir,
|
32 |
+
"LoRa": loras_dir,
|
33 |
+
"ControlNet Models": control_dir
|
34 |
}
|
35 |
|
36 |
""" functions """
|
files_cells/python/en/downloading_en.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
|
|
3 |
from models_data import model_list, vae_list, controlnet_list
|
4 |
|
5 |
import os
|
@@ -18,10 +19,10 @@ from urllib.parse import urlparse, parse_qs
|
|
18 |
|
19 |
|
20 |
# Setup Env
|
21 |
-
env = os.
|
22 |
-
root_path = os.
|
23 |
-
webui_path = os.
|
24 |
-
free_plan = os.
|
25 |
|
26 |
|
27 |
# ================ LIBRARIES V2 ================
|
@@ -102,15 +103,6 @@ try:
|
|
102 |
except:
|
103 |
start_colab = int(time.time())-5
|
104 |
|
105 |
-
# CONFIG DIR
|
106 |
-
models_dir = f"{webui_path}/models/Stable-diffusion"
|
107 |
-
vaes_dir = f"{webui_path}/models/VAE"
|
108 |
-
embeddings_dir = f"{webui_path}/embeddings"
|
109 |
-
loras_dir = f"{webui_path}/models/Lora"
|
110 |
-
extensions_dir = f"{webui_path}/extensions"
|
111 |
-
control_dir = f"{webui_path}/models/ControlNet"
|
112 |
-
adetailer_dir = f"{webui_path}/models/adetailer"
|
113 |
-
|
114 |
|
115 |
# ================= MAIN CODE =================
|
116 |
if not os.path.exists(webui_path):
|
|
|
1 |
##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
3 |
+
from directory_setup import *
|
4 |
from models_data import model_list, vae_list, controlnet_list
|
5 |
|
6 |
import os
|
|
|
19 |
|
20 |
|
21 |
# Setup Env
|
22 |
+
env = os.getenv('ENV_NAME')
|
23 |
+
root_path = os.getenv('ROOT_PATH')
|
24 |
+
webui_path = os.getenv('WEBUI_PATH')
|
25 |
+
free_plan = os.getenv('FREE_PLAN')
|
26 |
|
27 |
|
28 |
# ================ LIBRARIES V2 ================
|
|
|
103 |
except:
|
104 |
start_colab = int(time.time())-5
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
# ================= MAIN CODE =================
|
108 |
if not os.path.exists(webui_path):
|
files_cells/python/en/launch_en.py
CHANGED
@@ -11,10 +11,10 @@ from IPython.display import clear_output
|
|
11 |
|
12 |
|
13 |
# Setup Env
|
14 |
-
env = os.
|
15 |
-
root_path = os.
|
16 |
-
webui_path = os.
|
17 |
-
free_plan = os.
|
18 |
|
19 |
|
20 |
def load_settings():
|
@@ -87,7 +87,7 @@ if os.path.exists(config_path):
|
|
87 |
os.system(sed_command)
|
88 |
|
89 |
if env == 'Kaggle':
|
90 |
-
get_ipython().system('sed -i \'s
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
|
|
11 |
|
12 |
|
13 |
# Setup Env
|
14 |
+
env = os.getenv('ENV_NAME')
|
15 |
+
root_path = os.getenv('ROOT_PATH')
|
16 |
+
webui_path = os.getenv('WEBUI_PATH')
|
17 |
+
free_plan = os.getenv('FREE_PLAN')
|
18 |
|
19 |
|
20 |
def load_settings():
|
|
|
87 |
os.system(sed_command)
|
88 |
|
89 |
if env == 'Kaggle':
|
90 |
+
get_ipython().system('sed -i \'s/"civitai_interface\\/NSFW content\\/visible": true,/"civitai_interface\\/NSFW content\\/visible": false,/\' {webui_path}/ui-config.json')
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
files_cells/python/en/widgets_en.py
CHANGED
@@ -9,10 +9,10 @@ from IPython.display import display, HTML, Javascript, clear_output
|
|
9 |
|
10 |
|
11 |
# Setup Env
|
12 |
-
env = os.
|
13 |
-
root_path = os.
|
14 |
-
webui_path = os.
|
15 |
-
free_plan = os.
|
16 |
|
17 |
|
18 |
# ==================== CSS JS ====================
|
|
|
9 |
|
10 |
|
11 |
# Setup Env
|
12 |
+
env = os.getenv('ENV_NAME')
|
13 |
+
root_path = os.getenv('ROOT_PATH')
|
14 |
+
webui_path = os.getenv('WEBUI_PATH')
|
15 |
+
free_plan = os.getenv('FREE_PLAN')
|
16 |
|
17 |
|
18 |
# ==================== CSS JS ====================
|
files_cells/python/ru/auto_cleaner_ru.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##
|
2 |
|
|
|
|
|
3 |
import os
|
4 |
import time
|
5 |
import ipywidgets as widgets
|
@@ -8,10 +10,10 @@ from IPython.display import display, HTML
|
|
8 |
|
9 |
|
10 |
# Setup Env
|
11 |
-
env = os.
|
12 |
-
root_path = os.
|
13 |
-
webui_path = os.
|
14 |
-
free_plan = os.
|
15 |
|
16 |
|
17 |
# ==================== CSS ====================
|
@@ -24,11 +26,11 @@ display(HTML(f"<style>{CSS_AC}</style>"))
|
|
24 |
|
25 |
# ================ AutoCleaner function ================
|
26 |
directories = {
|
27 |
-
"Изображения":
|
28 |
-
"Модели":
|
29 |
-
"Vae":
|
30 |
-
"LoRa":
|
31 |
-
"ControlNet Модели":
|
32 |
}
|
33 |
|
34 |
""" functions """
|
|
|
1 |
##~ AutoCleaner V3.7 CODE | BY: ANXETY ~##
|
2 |
|
3 |
+
from directory_setup import models_dir, vaes_dir, control_dir, loras_dir, output_dir
|
4 |
+
|
5 |
import os
|
6 |
import time
|
7 |
import ipywidgets as widgets
|
|
|
10 |
|
11 |
|
12 |
# Setup Env
|
13 |
+
env = os.getenv('ENV_NAME')
|
14 |
+
root_path = os.getenv('ROOT_PATH')
|
15 |
+
webui_path = os.getenv('WEBUI_PATH')
|
16 |
+
free_plan = os.getenv('FREE_PLAN')
|
17 |
|
18 |
|
19 |
# ==================== CSS ====================
|
|
|
26 |
|
27 |
# ================ AutoCleaner function ================
|
28 |
directories = {
|
29 |
+
"Изображения": output_dir,
|
30 |
+
"Модели": models_dir,
|
31 |
+
"Vae": vaes_dir,
|
32 |
+
"LoRa": loras_dir,
|
33 |
+
"ControlNet Модели": control_dir
|
34 |
}
|
35 |
|
36 |
""" functions """
|
files_cells/python/ru/downloading_ru.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
|
|
3 |
from models_data import model_list, vae_list, controlnet_list
|
4 |
|
5 |
import os
|
@@ -18,10 +19,10 @@ from urllib.parse import urlparse, parse_qs
|
|
18 |
|
19 |
|
20 |
# Setup Env
|
21 |
-
env = os.
|
22 |
-
root_path = os.
|
23 |
-
webui_path = os.
|
24 |
-
free_plan = os.
|
25 |
|
26 |
|
27 |
# ================ LIBRARIES V2 ================
|
@@ -102,15 +103,6 @@ try:
|
|
102 |
except:
|
103 |
start_colab = int(time.time())-5
|
104 |
|
105 |
-
# CONFIG DIR
|
106 |
-
models_dir = f"{webui_path}/models/Stable-diffusion"
|
107 |
-
vaes_dir = f"{webui_path}/models/VAE"
|
108 |
-
embeddings_dir = f"{webui_path}/embeddings"
|
109 |
-
loras_dir = f"{webui_path}/models/Lora"
|
110 |
-
extensions_dir = f"{webui_path}/extensions"
|
111 |
-
control_dir = f"{webui_path}/models/ControlNet"
|
112 |
-
adetailer_dir = f"{webui_path}/models/adetailer"
|
113 |
-
|
114 |
|
115 |
# ================= MAIN CODE =================
|
116 |
if not os.path.exists(webui_path):
|
|
|
1 |
##~ DOWNLOADING CODE | BY: ANXETY ~##
|
2 |
|
3 |
+
from directory_setup import *
|
4 |
from models_data import model_list, vae_list, controlnet_list
|
5 |
|
6 |
import os
|
|
|
19 |
|
20 |
|
21 |
# Setup Env
|
22 |
+
env = os.getenv('ENV_NAME')
|
23 |
+
root_path = os.getenv('ROOT_PATH')
|
24 |
+
webui_path = os.getenv('WEBUI_PATH')
|
25 |
+
free_plan = os.getenv('FREE_PLAN')
|
26 |
|
27 |
|
28 |
# ================ LIBRARIES V2 ================
|
|
|
103 |
except:
|
104 |
start_colab = int(time.time())-5
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
# ================= MAIN CODE =================
|
108 |
if not os.path.exists(webui_path):
|
files_cells/python/ru/launch_ru.py
CHANGED
@@ -11,10 +11,10 @@ from IPython.display import clear_output
|
|
11 |
|
12 |
|
13 |
# Setup Env
|
14 |
-
env = os.
|
15 |
-
root_path = os.
|
16 |
-
webui_path = os.
|
17 |
-
free_plan = os.
|
18 |
|
19 |
|
20 |
def load_settings():
|
@@ -87,7 +87,7 @@ if os.path.exists(config_path):
|
|
87 |
os.system(sed_command)
|
88 |
|
89 |
if env == 'Kaggle':
|
90 |
-
get_ipython().system('sed -i \'s
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
|
|
11 |
|
12 |
|
13 |
# Setup Env
|
14 |
+
env = os.getenv('ENV_NAME')
|
15 |
+
root_path = os.getenv('ROOT_PATH')
|
16 |
+
webui_path = os.getenv('WEBUI_PATH')
|
17 |
+
free_plan = os.getenv('FREE_PLAN')
|
18 |
|
19 |
|
20 |
def load_settings():
|
|
|
87 |
os.system(sed_command)
|
88 |
|
89 |
if env == 'Kaggle':
|
90 |
+
get_ipython().system('sed -i \'s/"civitai_interface\\/NSFW content\\/visible": true,/"civitai_interface\\/NSFW content\\/visible": false,/\' {webui_path}/ui-config.json')
|
91 |
|
92 |
with tunnel:
|
93 |
get_ipython().run_line_magic('cd', '{webui_path}')
|
files_cells/python/ru/widgets_ru.py
CHANGED
@@ -9,10 +9,10 @@ from IPython.display import display, HTML, Javascript, clear_output
|
|
9 |
|
10 |
|
11 |
# Setup Env
|
12 |
-
env = os.
|
13 |
-
root_path = os.
|
14 |
-
webui_path = os.
|
15 |
-
free_plan = os.
|
16 |
|
17 |
|
18 |
# ==================== CSS JS ====================
|
|
|
9 |
|
10 |
|
11 |
# Setup Env
|
12 |
+
env = os.getenv('ENV_NAME')
|
13 |
+
root_path = os.getenv('ROOT_PATH')
|
14 |
+
webui_path = os.getenv('WEBUI_PATH')
|
15 |
+
free_plan = os.getenv('FREE_PLAN')
|
16 |
|
17 |
|
18 |
# ==================== CSS JS ====================
|
modules/directory_setup.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
webui_path = os.getenv('WEBUI_PATH')
|
4 |
+
|
5 |
+
output_dir = f"{webui_path}/output"
|
6 |
+
models_dir = f"{webui_path}/models/Stable-diffusion"
|
7 |
+
vaes_dir = f"{webui_path}/models/VAE"
|
8 |
+
embeddings_dir = f"{webui_path}/embeddings"
|
9 |
+
loras_dir = f"{webui_path}/models/Lora"
|
10 |
+
extensions_dir = f"{webui_path}/extensions"
|
11 |
+
control_dir = f"{webui_path}/models/ControlNet"
|
12 |
+
adetailer_dir = f"{webui_path}/models/adetailer"
|
modules/setup_en.py
CHANGED
@@ -39,11 +39,11 @@ def clear_module_cache(modules_folder):
|
|
39 |
|
40 |
def download_files(root_path, lang, repo):
|
41 |
print("Please wait for the files to download... 👀", end='', flush=True)
|
42 |
-
files_dict = {
|
43 |
-
'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css']},
|
44 |
'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
|
45 |
'file_cell/special': {f'special': ['dl_display_results.py']},
|
46 |
-
'modules': {f'modules': ['models_data.py']}
|
47 |
}
|
48 |
for folder, contents in files_dict.items():
|
49 |
folder_path = os.path.join(root_path, folder)
|
|
|
39 |
|
40 |
def download_files(root_path, lang, repo):
|
41 |
print("Please wait for the files to download... 👀", end='', flush=True)
|
42 |
+
files_dict = { # save folder name | url folder path | files list
|
43 |
+
'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
|
44 |
'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
|
45 |
'file_cell/special': {f'special': ['dl_display_results.py']},
|
46 |
+
'modules': {f'modules': ['models_data.py', 'directory_setup.py']}
|
47 |
}
|
48 |
for folder, contents in files_dict.items():
|
49 |
folder_path = os.path.join(root_path, folder)
|
modules/setup_ru.py
CHANGED
@@ -39,11 +39,11 @@ def clear_module_cache(modules_folder):
|
|
39 |
|
40 |
def download_files(root_path, lang, repo):
|
41 |
print("Пожалуйста, дождитесь загрузки файлов... 👀", end='', flush=True)
|
42 |
-
files_dict = {
|
43 |
-
'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css']},
|
44 |
'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
|
45 |
'file_cell/special': {f'special': ['dl_display_results.py']},
|
46 |
-
'modules': {f'modules': ['models_data.py']}
|
47 |
}
|
48 |
for folder, contents in files_dict.items():
|
49 |
folder_path = os.path.join(root_path, folder)
|
|
|
39 |
|
40 |
def download_files(root_path, lang, repo):
|
41 |
print("Пожалуйста, дождитесь загрузки файлов... 👀", end='', flush=True)
|
42 |
+
files_dict = { # save folder name | url folder path | files list
|
43 |
+
'CSS': {'CSS': ['main_widgets.css', 'auto_cleaner.css', 'dl_display_result.css']},
|
44 |
'file_cell': {f'files_cells/python/{lang}': [f'widgets_{lang}.py', f'downloading_{lang}.py', f'launch_{lang}.py', f'auto_cleaner_{lang}.py']},
|
45 |
'file_cell/special': {f'special': ['dl_display_results.py']},
|
46 |
+
'modules': {f'modules': ['models_data.py', 'directory_setup.py']}
|
47 |
}
|
48 |
for folder, contents in files_dict.items():
|
49 |
folder_path = os.path.join(root_path, folder)
|
special/dl_display_results.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
##~ Display Download Results Widgets | by: ANXETY ~##
|
2 |
|
|
|
|
|
3 |
import re
|
4 |
import os
|
5 |
import json
|
@@ -9,163 +11,26 @@ from ipywidgets import widgets, Layout, Label, Button, VBox, HBox
|
|
9 |
from IPython.display import display, HTML, Javascript, clear_output
|
10 |
|
11 |
|
12 |
-
#
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
'KAGGLE_URL_BASE': ('Kaggle', "/kaggle/working/content")
|
18 |
-
}
|
19 |
-
|
20 |
-
for env_var, (environment, path) in environments.items():
|
21 |
-
if env_var in os.environ:
|
22 |
-
return environment, path, free_plan
|
23 |
-
|
24 |
-
env, root_path, free_plan = detect_environment()
|
25 |
-
webui_path = f"{root_path}/sdw"
|
26 |
-
# ----------------------------------------------
|
27 |
-
|
28 |
-
|
29 |
-
# CONFIG DIR
|
30 |
-
models_dir = f"{webui_path}/models/Stable-diffusion"
|
31 |
-
vaes_dir = f"{webui_path}/models/VAE"
|
32 |
-
embeddings_dir = f"{webui_path}/embeddings"
|
33 |
-
loras_dir = f"{webui_path}/models/Lora"
|
34 |
-
extensions_dir = f"{webui_path}/extensions"
|
35 |
-
control_dir = f"{webui_path}/models/ControlNet"
|
36 |
-
|
37 |
-
|
38 |
-
# ==================== CSS ====================
|
39 |
-
CSS = """
|
40 |
-
<style>
|
41 |
-
/* General Styles */
|
42 |
-
.header_dl,
|
43 |
-
.header_outputs_dl {
|
44 |
-
font-family: cursive;
|
45 |
-
font-size: 20px;
|
46 |
-
font-weight: bold;
|
47 |
-
text-align: center;
|
48 |
-
}
|
49 |
-
.header_dl {
|
50 |
-
color: #AC8FA5;
|
51 |
-
margin-bottom: 15px;
|
52 |
-
}
|
53 |
-
.header_outputs_dl {
|
54 |
-
color: #0083C0;
|
55 |
-
}
|
56 |
-
|
57 |
-
hr {
|
58 |
-
border-color: grey;
|
59 |
-
background-color: grey;
|
60 |
-
opacity: 0.25;
|
61 |
-
width: 1000px;
|
62 |
-
}
|
63 |
-
|
64 |
-
/* Element text style */
|
65 |
-
.widget-html {
|
66 |
-
font-family: cursive;
|
67 |
-
font-size: 14px;
|
68 |
-
color: white !important;
|
69 |
-
user-select: none;
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
/* Container style */
|
74 |
-
.container_dl {
|
75 |
-
position: relative;
|
76 |
-
flex-direction: column;
|
77 |
-
align-items: center;
|
78 |
-
background-color: #232323;
|
79 |
-
width: 1200px;
|
80 |
-
height: auto;
|
81 |
-
margin: 40px 10px 10px 10px;
|
82 |
-
padding: 10px 15px;
|
83 |
-
border-radius: 15px;
|
84 |
-
box-shadow: 0 0 50px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
|
85 |
-
transition: all 0.5s ease-in-out;
|
86 |
-
overflow: visible;
|
87 |
-
}
|
88 |
-
.container_dl::after {
|
89 |
-
position: absolute;
|
90 |
-
top: 5px;
|
91 |
-
right: 10px;
|
92 |
-
content: "ANXETY";
|
93 |
-
font-weight: bold;
|
94 |
-
font-size: 24px;
|
95 |
-
color: rgba(0, 0, 0, 0.2);
|
96 |
-
}
|
97 |
-
|
98 |
-
.result_output_dl {
|
99 |
-
flex-wrap: wrap;
|
100 |
-
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
|
101 |
-
border-radius: 8px;
|
102 |
-
background-color: #1F1F1F;
|
103 |
-
width: 95%;
|
104 |
-
padding: 10px 15px;
|
105 |
-
overflow: visible;
|
106 |
-
}
|
107 |
-
.outputs_dl {
|
108 |
-
flex-grow: 1;
|
109 |
-
flex-wrap: wrap;
|
110 |
-
background-color: #181818;
|
111 |
-
padding: 10px 15px;
|
112 |
-
border-radius: 15px;
|
113 |
-
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.3);
|
114 |
-
color: #C1C1C1;
|
115 |
-
margin: 8px;
|
116 |
-
transition: all 0.15s ease-in-out;
|
117 |
-
}
|
118 |
-
|
119 |
-
/* good use of space */
|
120 |
-
.extension {
|
121 |
-
display: grid;
|
122 |
-
grid-template-columns: repeat(3, 1fr);
|
123 |
-
}
|
124 |
-
|
125 |
-
|
126 |
-
/* Animation of elements */
|
127 |
-
|
128 |
-
.container_dl,
|
129 |
-
.outputs_dl {
|
130 |
-
animation: showedResult 1s;
|
131 |
-
}
|
132 |
-
.items_dl {
|
133 |
-
animation: showedText 1s;
|
134 |
-
}
|
135 |
-
|
136 |
-
@keyframes showedResult {
|
137 |
-
0% {
|
138 |
-
transform: translate3d(0, 15%, 0);
|
139 |
-
opacity: 0;
|
140 |
-
}
|
141 |
-
100% {
|
142 |
-
transform: translate3d(0, 0, 0);
|
143 |
-
opacity: 1;
|
144 |
-
}
|
145 |
-
}
|
146 |
|
147 |
-
@keyframes showedText {
|
148 |
-
0% {
|
149 |
-
transform: translate3d(-30%, 0, 0);
|
150 |
-
opacity: 0;
|
151 |
-
}
|
152 |
-
100% {
|
153 |
-
transform: translate3d(0, 0, 0);
|
154 |
-
opacity: 1;
|
155 |
-
}
|
156 |
-
}
|
157 |
-
</style>
|
158 |
-
"""
|
159 |
|
160 |
-
display(HTML(CSS))
|
161 |
# ==================== CSS ====================
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
|
164 |
# ==================== WIDGETS ====================
|
165 |
# Constants
|
166 |
HR = widgets.HTML('<hr>')
|
167 |
HEADER_DL = 'DOWNLOAD RESULTS'
|
168 |
-
VERSION = 'v0.
|
169 |
|
170 |
## Functions
|
171 |
def output_container_generator(header, items):
|
|
|
1 |
##~ Display Download Results Widgets | by: ANXETY ~##
|
2 |
|
3 |
+
from directory_setup import *
|
4 |
+
|
5 |
import re
|
6 |
import os
|
7 |
import json
|
|
|
11 |
from IPython.display import display, HTML, Javascript, clear_output
|
12 |
|
13 |
|
14 |
+
# Setup Env
|
15 |
+
env = os.getenv('ENV_NAME')
|
16 |
+
root_path = os.getenv('ROOT_PATH')
|
17 |
+
webui_path = os.getenv('WEBUI_PATH')
|
18 |
+
free_plan = os.getenv('FREE_PLAN')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
|
|
21 |
# ==================== CSS ====================
|
22 |
+
# Main CSS
|
23 |
+
css_file_path = f"{root_path}/CSS/dl_display_result.css"
|
24 |
+
with open(css_file_path , "r") as f:
|
25 |
+
CSS = f.read()
|
26 |
+
display(HTML(f"<style>{CSS}</style>"))
|
27 |
|
28 |
|
29 |
# ==================== WIDGETS ====================
|
30 |
# Constants
|
31 |
HR = widgets.HTML('<hr>')
|
32 |
HEADER_DL = 'DOWNLOAD RESULTS'
|
33 |
+
VERSION = 'v0.33'
|
34 |
|
35 |
## Functions
|
36 |
def output_container_generator(header, items):
|