Spaces:
Running
Running
salomonsky
commited on
Commit
•
3a060b2
1
Parent(s):
7782748
Update app.py
Browse files
app.py
CHANGED
@@ -201,14 +201,14 @@ def main():
|
|
201 |
|
202 |
st.image(image, caption=f"Imagen {idx+1}")
|
203 |
st.write(f"Prompt: {prompt_text}")
|
204 |
-
|
205 |
if st.button(f"Borrar Imagen {idx+1}", key=f"delete_{idx+1}"):
|
206 |
delete_image(file)
|
207 |
|
208 |
if st.button(f"Swap Face {idx+1}", key=f"swap_{idx+1}"):
|
209 |
swapped_image_path = swap_faces(file)
|
210 |
if swapped_image_path:
|
211 |
-
|
212 |
|
213 |
if __name__ == "__main__":
|
214 |
main()
|
|
|
201 |
|
202 |
st.image(image, caption=f"Imagen {idx+1}")
|
203 |
st.write(f"Prompt: {prompt_text}")
|
204 |
+
|
205 |
if st.button(f"Borrar Imagen {idx+1}", key=f"delete_{idx+1}"):
|
206 |
delete_image(file)
|
207 |
|
208 |
if st.button(f"Swap Face {idx+1}", key=f"swap_{idx+1}"):
|
209 |
swapped_image_path = swap_faces(file)
|
210 |
if swapped_image_path:
|
211 |
+
st.image(swapped_image_path, caption=f"Imagen {idx+1} con Face Swap")
|
212 |
|
213 |
if __name__ == "__main__":
|
214 |
main()
|