Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -173,7 +173,7 @@ with gr.Blocks(css=".gradio-container {background-color: #FDF5E6;} .dark .gradio
|
|
| 173 |
|
| 174 |
upload_source_image.upload(handle_upload_source_image)
|
| 175 |
generate_button.click(send_it1, inputs=[input_text], outputs=[output_generated_image])
|
| 176 |
-
swap_button.click(swap_faces, inputs=[output_generated_image, gr.Number(precision=0, value=1, label='Source Face Position', info='Specify which face to use from the uploaded image')
|
| 177 |
|
| 178 |
generate_and_swap_button.click(handle_upload_source_image)
|
| 179 |
demo.launch(enable_queue=True, inline=True)
|
|
|
|
| 173 |
|
| 174 |
upload_source_image.upload(handle_upload_source_image)
|
| 175 |
generate_button.click(send_it1, inputs=[input_text], outputs=[output_generated_image])
|
| 176 |
+
swap_button.click(swap_faces, inputs=[output_generated_image, gr.Number(precision=0, value=1, label='Source Face Position', info='Specify which face to use from the uploaded image'), upload_source_image, gr.Number(precision=0, value=1, label='Destination Face Position', info='Specify which face to replace in the uploaded image')], outputs=[output_face_swap_result])
|
| 177 |
|
| 178 |
generate_and_swap_button.click(handle_upload_source_image)
|
| 179 |
demo.launch(enable_queue=True, inline=True)
|