Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,15 @@ except Exception as e:
|
|
| 10 |
|
| 11 |
# Funci贸n que conecta los botones con el motor
|
| 12 |
def crear_foto(style, custom_text):
|
| 13 |
-
#
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
img, status = generate_image_from_prompt(
|
| 16 |
-
prompt=
|
| 17 |
-
|
| 18 |
-
model_name="black-forest-labs/FLUX.1-dev",
|
| 19 |
-
seed=None
|
| 20 |
)
|
| 21 |
return img, status
|
| 22 |
|
|
|
|
| 10 |
|
| 11 |
# Funci贸n que conecta los botones con el motor
|
| 12 |
def crear_foto(style, custom_text):
|
| 13 |
+
# Base f铆sica de Sof铆a para mantener consistencia
|
| 14 |
+
sofia_base = "Professional portrait of Sofia Rivera, a beautiful 25yo Spanish-Latina woman, hazel eyes, wavy dark chocolate hair, sun-kissed skin, highly detailed, 8k, instagram style, "
|
| 15 |
+
|
| 16 |
+
# Unir la base con el estilo elegido
|
| 17 |
+
final_prompt = sofia_base + (custom_text if style == "Personalizado" else style)
|
| 18 |
+
|
| 19 |
img, status = generate_image_from_prompt(
|
| 20 |
+
prompt=final_prompt,
|
| 21 |
+
model_name="black-forest-labs/FLUX.1-schnell" # Forzamos el modelo gratuito
|
|
|
|
|
|
|
| 22 |
)
|
| 23 |
return img, status
|
| 24 |
|