Spaces:
Running
Running
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 |