Spaces:
Paused
Paused
Commit
·
8264f82
1
Parent(s):
97803a9
app.py
Browse files- 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,
|
| 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 =
|
| 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():
|