Spaces:
Runtime error
Runtime error
No brackets
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def save_preferences(preferences, value):
|
|
| 120 |
|
| 121 |
def load_preferences(saved_prefs):
|
| 122 |
saved_prefs = init_preferences(saved_prefs)
|
| 123 |
-
return
|
| 124 |
|
| 125 |
def init_preferences(saved_prefs):
|
| 126 |
if saved_prefs is None:
|
|
@@ -1088,7 +1088,7 @@ with block:
|
|
| 1088 |
"./img_examples/Example1.png", # input_image
|
| 1089 |
"View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 1090 |
"image", # generation_mode
|
| 1091 |
-
"
|
| 1092 |
True, # randomize_seed
|
| 1093 |
42, # seed
|
| 1094 |
1, # total_second_length
|
|
@@ -1105,7 +1105,7 @@ with block:
|
|
| 1105 |
"./img_examples/Example1.png", # input_image
|
| 1106 |
"A dolphin emerges from the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 1107 |
"image", # generation_mode
|
| 1108 |
-
"
|
| 1109 |
True, # randomize_seed
|
| 1110 |
42, # seed
|
| 1111 |
1, # total_second_length
|
|
|
|
| 120 |
|
| 121 |
def load_preferences(saved_prefs):
|
| 122 |
saved_prefs = init_preferences(saved_prefs)
|
| 123 |
+
return saved_prefs["generation-mode"]
|
| 124 |
|
| 125 |
def init_preferences(saved_prefs):
|
| 126 |
if saved_prefs is None:
|
|
|
|
| 1088 |
"./img_examples/Example1.png", # input_image
|
| 1089 |
"View of the sea as far as the eye can see, from the seaside, a piece of land is barely visible on the horizon at the middle, the sky is radiant, reflections of the sun in the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 1090 |
"image", # generation_mode
|
| 1091 |
+
"Missing arm, unrealistic position, impossible contortion, blurred, blurry", # n_prompt
|
| 1092 |
True, # randomize_seed
|
| 1093 |
42, # seed
|
| 1094 |
1, # total_second_length
|
|
|
|
| 1105 |
"./img_examples/Example1.png", # input_image
|
| 1106 |
"A dolphin emerges from the water, photorealistic, realistic, intricate details, 8k, insanely detailed",
|
| 1107 |
"image", # generation_mode
|
| 1108 |
+
"Missing arm, unrealistic position, impossible contortion, blurred, blurry", # n_prompt
|
| 1109 |
True, # randomize_seed
|
| 1110 |
42, # seed
|
| 1111 |
1, # total_second_length
|