Spaces:
Running
Running
File size: 477 Bytes
aca6f02 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
pip install gradio
import gradio as gr
# Define your face swapping function here
def swap_faces(image):
# Your face swapping logic here
return swapped_image
# Create Gradio interface
iface = gr.Interface(fn=swap_faces,
inputs="image",
outputs="image",
title="Face Swapping",
description="Upload an image to swap faces.")
# Launch Gradio interface
iface.launch()
python app.py |