Spaces:
Running
Running
salomonsky
commited on
Commit
•
ec16ee4
1
Parent(s):
5af9e2e
Update app.py
Browse files
app.py
CHANGED
@@ -204,9 +204,10 @@ async def main():
|
|
204 |
st.title("Flux +Upscale +Prompt Enhancer +FaceSwap")
|
205 |
generated_image_path = st.session_state.get('generated_image_path')
|
206 |
prompt = st.sidebar.text_area("Descripción de la imagen", height=150, max_chars=500)
|
207 |
-
format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9"])
|
208 |
model_option = st.sidebar.selectbox("Modelo", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-dev"])
|
209 |
-
prompt_checkbox = st.sidebar.checkbox("Prompt
|
|
|
210 |
width, height = (360, 640) if format_option == "9:16" else (640, 360) if format_option == "16:9" else (640, 640)
|
211 |
num_variants = st.sidebar.slider("Número de imágenes a generar", 1, 8, 1) if prompt_checkbox else 1
|
212 |
|
|
|
204 |
st.title("Flux +Upscale +Prompt Enhancer +FaceSwap")
|
205 |
generated_image_path = st.session_state.get('generated_image_path')
|
206 |
prompt = st.sidebar.text_area("Descripción de la imagen", height=150, max_chars=500)
|
207 |
+
format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9", "1:1"])
|
208 |
model_option = st.sidebar.selectbox("Modelo", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-dev"])
|
209 |
+
prompt_checkbox = st.sidebar.checkbox("Mejorar Prompt")
|
210 |
+
upscale_checkbox = st.sidebar.checkbox("Escalar imagen")
|
211 |
width, height = (360, 640) if format_option == "9:16" else (640, 360) if format_option == "16:9" else (640, 640)
|
212 |
num_variants = st.sidebar.slider("Número de imágenes a generar", 1, 8, 1) if prompt_checkbox else 1
|
213 |
|