Spaces:
Runtime error
Runtime error
File size: 772 Bytes
26d2e03 39efdd8 26d2e03 39efdd8 679d980 39efdd8 679d980 bc80aeb 679d980 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import gradio as gr
import requests
#FaceSwap Stuff
url = "https://api.prodia.com/v1/faceswap"
payload = {
"sourceUrl": "body.png",
"targetUrl": "face.png"
}
headers = {
"accept": "application/json",
"content-type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
#Copilot Stuff
#import gradio as gr
# Define the Gradio interface
description = "Upload and download files"
title = "Upload and Download"
interface = gr.Interface(
fn=None, # We don't need a function for this example
BodyInput=gr.inputs.File(label="Upload Body Picture"),
FaceInput=gr.inputs.File(label="Upload Face Picture"),
title=title,
description=description
)
# Launch the Gradio app
interface.launch() |