Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ translator = Translator()
|
|
15 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
16 |
# Constants
|
17 |
model = "black-forest-labs/FLUX.1-dev"
|
18 |
-
default_lora = "Shakker-Labs/
|
19 |
-
default_weight_name = '
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
|
22 |
CSS = """
|
@@ -134,7 +134,7 @@ def generate_image(
|
|
134 |
return image, seed
|
135 |
|
136 |
examples = [
|
137 |
-
["close up portrait, Amidst the interplay of light and shadows in a photography studio,a soft spotlight traces the contours of a face,highlighting a figure clad in a sleek black turtleneck. The garment,hugging the skin with subtle luxury,complements the
|
138 |
["Caucasian,The image features a young woman of European descent standing in an studio setting,surrounded by silk. (She is wearing a silk dress),paired with a bold. Her brown hair is wet and tousled,falling naturally around her face,giving her a raw and edgy look. The woman has an intense and direct gaze,adding to the dramatic feel of the image. The backdrop is flowing silk,big silk. The overall composition blends elements of fashion and nature,creating a striking and powerful visual",0.9,"Shakker-Labs/AWPortrait-FL",""],
|
139 |
["A young Japanese girl, profile, blue hours, Tokyo tower",0.9,"Shakker-Labs/FilmPortrait","filmfotos, film grain, reversal film photography"],
|
140 |
["A young asian girl",0.9,"Shakker-Labs/FilmPortrait","filmfotos, film grain, reversal film photography"]
|
@@ -208,13 +208,13 @@ with gr.Blocks(css=CSS, js=JS, theme="Nymbo/Nymbo_Theme") as demo:
|
|
208 |
label="Flux LoRA",
|
209 |
info="Copy the HF LoRA model name here",
|
210 |
lines=1,
|
211 |
-
value="Shakker-Labs/
|
212 |
)
|
213 |
lora_word = gr.Textbox(
|
214 |
label="Add Flux LoRA Trigger Word",
|
215 |
info="Add the Trigger Word",
|
216 |
lines=1,
|
217 |
-
value="
|
218 |
)
|
219 |
load_lora = gr.Button(value="Load LoRA", variant='secondary')
|
220 |
|
|
|
15 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
16 |
# Constants
|
17 |
model = "black-forest-labs/FLUX.1-dev"
|
18 |
+
default_lora = "Shakker-Labs/AWPortraitCN"
|
19 |
+
default_weight_name = 'AWPortraitCN.safetensors'
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
|
22 |
CSS = """
|
|
|
134 |
return image, seed
|
135 |
|
136 |
examples = [
|
137 |
+
["close up portrait, Amidst the interplay of light and shadows in a photography studio,a soft spotlight traces the contours of a face,highlighting a figure clad in a sleek black turtleneck. The garment,hugging the skin with subtle luxury,complements the Chinese model's understated makeup,embodying minimalist elegance. Behind,a pale gray backdrop extends,its fine texture shimmering subtly in the dim light,artfully balancing the composition and focusing attention on the subject. In a palette of black,gray,and skin tones,simplicity intertwines with profundity,as every detail whispers untold stories.",0.9,"Shakker-Labs/AWPortraitCN",""],
|
138 |
["Caucasian,The image features a young woman of European descent standing in an studio setting,surrounded by silk. (She is wearing a silk dress),paired with a bold. Her brown hair is wet and tousled,falling naturally around her face,giving her a raw and edgy look. The woman has an intense and direct gaze,adding to the dramatic feel of the image. The backdrop is flowing silk,big silk. The overall composition blends elements of fashion and nature,creating a striking and powerful visual",0.9,"Shakker-Labs/AWPortrait-FL",""],
|
139 |
["A young Japanese girl, profile, blue hours, Tokyo tower",0.9,"Shakker-Labs/FilmPortrait","filmfotos, film grain, reversal film photography"],
|
140 |
["A young asian girl",0.9,"Shakker-Labs/FilmPortrait","filmfotos, film grain, reversal film photography"]
|
|
|
208 |
label="Flux LoRA",
|
209 |
info="Copy the HF LoRA model name here",
|
210 |
lines=1,
|
211 |
+
value="Shakker-Labs/AWPortraitCN",
|
212 |
)
|
213 |
lora_word = gr.Textbox(
|
214 |
label="Add Flux LoRA Trigger Word",
|
215 |
info="Add the Trigger Word",
|
216 |
lines=1,
|
217 |
+
value="",
|
218 |
)
|
219 |
load_lora = gr.Button(value="Load LoRA", variant='secondary')
|
220 |
|