Spaces:
Running
Running
salomonsky
commited on
Commit
•
e60811a
1
Parent(s):
dcb68b8
Update app.py
Browse files
app.py
CHANGED
@@ -141,13 +141,16 @@ if st.sidebar.button("Mejorar prompt"):
|
|
141 |
|
142 |
if st.sidebar.button("Generar Imagen"):
|
143 |
with st.spinner("Generando imagen..."):
|
144 |
-
|
|
|
|
|
145 |
|
146 |
if image_paths:
|
147 |
-
st.image(image_paths
|
148 |
prompt_text = Path(prompt_file).read_text()
|
149 |
st.write(f"Prompt utilizado: {prompt_text}")
|
150 |
|
|
|
151 |
files, usage = get_storage()
|
152 |
st.text(usage)
|
153 |
|
|
|
141 |
|
142 |
if st.sidebar.button("Generar Imagen"):
|
143 |
with st.spinner("Generando imagen..."):
|
144 |
+
result = run_gen()
|
145 |
+
image_paths = result[0]
|
146 |
+
prompt_file = result[1]
|
147 |
|
148 |
if image_paths:
|
149 |
+
st.image(image_paths, caption="Imagen Generada")
|
150 |
prompt_text = Path(prompt_file).read_text()
|
151 |
st.write(f"Prompt utilizado: {prompt_text}")
|
152 |
|
153 |
+
|
154 |
files, usage = get_storage()
|
155 |
st.text(usage)
|
156 |
|