Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,12 +105,12 @@ def gen_pos_prompt(text):
|
|
| 105 |
return pos_prompt
|
| 106 |
|
| 107 |
def generate_image_from_text(pos_prompt):
|
| 108 |
-
new_prompt = gen_pos_prompt(pos_prompt)
|
| 109 |
print(new_prompt)
|
| 110 |
neg_prompt = '''Detailed, complex textures, intricate patterns, realistic lighting, high contrast, reflections, fuzzy surface, realistic proportions, photographic quality, vibrant colors, detailed background, shadows, disfigured, deformed, ugly, multiple, duplicate.'''
|
| 111 |
parameters = {
|
| 112 |
'taskType': 'TEXT_IMAGE',
|
| 113 |
-
'textToImageParams': {'text':
|
| 114 |
'negativeText': neg_prompt},
|
| 115 |
'imageGenerationConfig': {"cfgScale":8,
|
| 116 |
"seed":0,
|
|
|
|
| 105 |
return pos_prompt
|
| 106 |
|
| 107 |
def generate_image_from_text(pos_prompt):
|
| 108 |
+
# new_prompt = gen_pos_prompt(pos_prompt)
|
| 109 |
print(new_prompt)
|
| 110 |
neg_prompt = '''Detailed, complex textures, intricate patterns, realistic lighting, high contrast, reflections, fuzzy surface, realistic proportions, photographic quality, vibrant colors, detailed background, shadows, disfigured, deformed, ugly, multiple, duplicate.'''
|
| 111 |
parameters = {
|
| 112 |
'taskType': 'TEXT_IMAGE',
|
| 113 |
+
'textToImageParams': {'text': pos_prompt,
|
| 114 |
'negativeText': neg_prompt},
|
| 115 |
'imageGenerationConfig': {"cfgScale":8,
|
| 116 |
"seed":0,
|