Spaces:
Running
Running
salomonsky
commited on
Commit
•
e43e81e
1
Parent(s):
429404e
Update app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,7 @@ def main():
|
|
139 |
|
140 |
prompt = st.sidebar.text_input("Descripción de la imagen", max_chars=200)
|
141 |
process_enhancer = st.sidebar.checkbox("Mejorar Prompt", value=True)
|
|
|
142 |
basemodel = st.sidebar.selectbox("Modelo Base", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-DEV"])
|
143 |
format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9"])
|
144 |
process_upscale = st.sidebar.checkbox("Procesar Escalador", value=True)
|
@@ -146,7 +147,6 @@ def main():
|
|
146 |
scales = st.sidebar.slider("Escalado", 1, 20, 10)
|
147 |
steps = st.sidebar.slider("Pasos", 1, 100, 20)
|
148 |
seed = st.sidebar.number_input("Semilla", value=-1)
|
149 |
-
language = st.sidebar.selectbox("Idioma", ["es", "en"])
|
150 |
|
151 |
if format_option == "9:16":
|
152 |
width = 720
|
@@ -199,4 +199,4 @@ def main():
|
|
199 |
st.error(f"Error al borrar la imagen o prompt: {e}")
|
200 |
|
201 |
if __name__ == "__main__":
|
202 |
-
main()
|
|
|
139 |
|
140 |
prompt = st.sidebar.text_input("Descripción de la imagen", max_chars=200)
|
141 |
process_enhancer = st.sidebar.checkbox("Mejorar Prompt", value=True)
|
142 |
+
language = st.sidebar.selectbox("Idioma", ["es", "en"])
|
143 |
basemodel = st.sidebar.selectbox("Modelo Base", ["black-forest-labs/FLUX.1-schnell", "black-forest-labs/FLUX.1-DEV"])
|
144 |
format_option = st.sidebar.selectbox("Formato", ["9:16", "16:9"])
|
145 |
process_upscale = st.sidebar.checkbox("Procesar Escalador", value=True)
|
|
|
147 |
scales = st.sidebar.slider("Escalado", 1, 20, 10)
|
148 |
steps = st.sidebar.slider("Pasos", 1, 100, 20)
|
149 |
seed = st.sidebar.number_input("Semilla", value=-1)
|
|
|
150 |
|
151 |
if format_option == "9:16":
|
152 |
width = 720
|
|
|
199 |
st.error(f"Error al borrar la imagen o prompt: {e}")
|
200 |
|
201 |
if __name__ == "__main__":
|
202 |
+
main()
|