Update kohya_gui_kaggle.py
Browse files- kohya_gui_kaggle.py +2 -4
kohya_gui_kaggle.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
import gradio as gr
|
3 |
import os
|
4 |
import argparse
|
5 |
from kohya_gui.class_gui_config import KohyaSSGUIConfig
|
@@ -9,7 +8,6 @@ from kohya_gui.textual_inversion_gui import ti_tab
|
|
9 |
from kohya_gui.utilities import utilities_tab
|
10 |
from kohya_gui.lora_gui import lora_tab
|
11 |
from kohya_gui.class_lora_tab import LoRATools
|
12 |
-
|
13 |
from kohya_gui.custom_logging import setup_logging
|
14 |
from kohya_gui.localization_ext import add_javascript
|
15 |
|
@@ -80,6 +78,7 @@ def UI(**kwargs):
|
|
80 |
</html>
|
81 |
"""
|
82 |
gr.HTML(htmlStr)
|
|
|
83 |
# Show the interface
|
84 |
launch_kwargs = {}
|
85 |
username = kwargs.get("username")
|
@@ -136,7 +135,6 @@ if __name__ == "__main__":
|
|
136 |
parser.add_argument(
|
137 |
"--language", type=str, default=None, help="Set custom language"
|
138 |
)
|
139 |
-
|
140 |
parser.add_argument("--use-ipex", action="store_true", help="Use IPEX environment")
|
141 |
parser.add_argument("--use-rocm", action="store_true", help="Use ROCm environment")
|
142 |
|
|
|
1 |
+
import gradio as gr
|
|
|
2 |
import os
|
3 |
import argparse
|
4 |
from kohya_gui.class_gui_config import KohyaSSGUIConfig
|
|
|
8 |
from kohya_gui.utilities import utilities_tab
|
9 |
from kohya_gui.lora_gui import lora_tab
|
10 |
from kohya_gui.class_lora_tab import LoRATools
|
|
|
11 |
from kohya_gui.custom_logging import setup_logging
|
12 |
from kohya_gui.localization_ext import add_javascript
|
13 |
|
|
|
78 |
</html>
|
79 |
"""
|
80 |
gr.HTML(htmlStr)
|
81 |
+
|
82 |
# Show the interface
|
83 |
launch_kwargs = {}
|
84 |
username = kwargs.get("username")
|
|
|
135 |
parser.add_argument(
|
136 |
"--language", type=str, default=None, help="Set custom language"
|
137 |
)
|
|
|
138 |
parser.add_argument("--use-ipex", action="store_true", help="Use IPEX environment")
|
139 |
parser.add_argument("--use-rocm", action="store_true", help="Use ROCm environment")
|
140 |
|