Spaces:
Paused
Paused
Commit
·
cadf53e
1
Parent(s):
14cb9f4
app.py
Browse files
app.py
CHANGED
|
@@ -54,11 +54,9 @@ class Img2Img:
|
|
| 54 |
self.tagger_model = modelLoad(self.tagger_dir)
|
| 55 |
|
| 56 |
@staticmethod
|
| 57 |
-
def process_prompt_analysis(input_image_path,tagger_model,tagger_dir
|
| 58 |
tags = analysis(input_image_path, tagger_dir, tagger_model)
|
| 59 |
-
tags_list = tags
|
| 60 |
-
if post_filter:
|
| 61 |
-
tags_list = remove_color(tags)
|
| 62 |
return tags_list
|
| 63 |
|
| 64 |
|
|
@@ -85,7 +83,7 @@ class Img2Img:
|
|
| 85 |
|
| 86 |
prompt_analysis_button.click(
|
| 87 |
self.process_prompt_analysis,
|
| 88 |
-
inputs=[self.input_image_path, self.tagger_model, self.tagger_dir
|
| 89 |
outputs=self.prompt
|
| 90 |
)
|
| 91 |
|
|
|
|
| 54 |
self.tagger_model = modelLoad(self.tagger_dir)
|
| 55 |
|
| 56 |
@staticmethod
|
| 57 |
+
def process_prompt_analysis(input_image_path,tagger_model,tagger_dir):
|
| 58 |
tags = analysis(input_image_path, tagger_dir, tagger_model)
|
| 59 |
+
tags_list = remove_color(tags)
|
|
|
|
|
|
|
| 60 |
return tags_list
|
| 61 |
|
| 62 |
|
|
|
|
| 83 |
|
| 84 |
prompt_analysis_button.click(
|
| 85 |
self.process_prompt_analysis,
|
| 86 |
+
inputs=[self.input_image_path, self.tagger_model, self.tagger_dir],
|
| 87 |
outputs=self.prompt
|
| 88 |
)
|
| 89 |
|