tori29umai commited on
Commit
8264f82
1 Parent(s): 97803a9
Files changed (1) hide show
  1. utils/prompt_analysis.py +2 -2
utils/prompt_analysis.py CHANGED
@@ -7,13 +7,13 @@ from utils.tagger import modelLoad, analysis
7
 
8
 
9
  class PromptAnalysis:
10
- def __init__(self, app_config, post_filter=True,
11
  default_nagative_prompt="lowres, error, extra digit, fewer digits, cropped, worst quality, "
12
  "low quality, normal quality, jpeg artifacts, blurry"):
13
  self.default_nagative_prompt = default_nagative_prompt
14
  self.post_filter = post_filter
15
  self.model = None
16
- self.model_dir = os.path.join(app_config.dpath, 'models/tagger')
17
 
18
  def layout(self, lang_util, input_image):
19
  with gr.Column():
 
7
 
8
 
9
  class PromptAnalysis:
10
+ def __init__(self, model_dir, post_filter=True,
11
  default_nagative_prompt="lowres, error, extra digit, fewer digits, cropped, worst quality, "
12
  "low quality, normal quality, jpeg artifacts, blurry"):
13
  self.default_nagative_prompt = default_nagative_prompt
14
  self.post_filter = post_filter
15
  self.model = None
16
+ self.model_dir = model_dir
17
 
18
  def layout(self, lang_util, input_image):
19
  with gr.Column():