Skip to content

Commit

Permalink
Fix tkinter issue for headless
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Apr 15, 2024
1 parent e519ffe commit f4658f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kohya_gui/dreambooth_folder_creation_gui.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import gradio as gr
from easygui import msgbox
from .common_gui import get_folder_path, scriptdir, list_dirs, create_refresh_button
import shutil
import os
Expand Down Expand Up @@ -45,12 +44,12 @@ def dreambooth_folder_preparation(

# Check for instance prompt
if util_instance_prompt_input == "":
msgbox("Instance prompt missing...")
log.error("Instance prompt missing...")
return

# Check for class prompt
if util_class_prompt_input == "":
msgbox("Class prompt missing...")
log.error("Class prompt missing...")
return

# Create the training_dir path
Expand Down

0 comments on commit f4658f9

Please sign in to comment.