Spaces:
Runtime error
Runtime error
theFisher86
commited on
Commit
•
679d980
1
Parent(s):
57859cc
Update app.py
Browse filesadd co-pilot code
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import requests
|
3 |
|
4 |
|
5 |
-
|
6 |
url = "https://api.prodia.com/v1/faceswap"
|
7 |
|
8 |
payload = {
|
@@ -18,12 +18,19 @@ response = requests.post(url, json=payload, headers=headers)
|
|
18 |
|
19 |
print(response.text)
|
20 |
|
21 |
-
|
22 |
-
#
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import requests
|
3 |
|
4 |
|
5 |
+
#FaceSwap Stuff
|
6 |
url = "https://api.prodia.com/v1/faceswap"
|
7 |
|
8 |
payload = {
|
|
|
18 |
|
19 |
print(response.text)
|
20 |
|
21 |
+
#Copilot Stuff
|
22 |
+
#import gradio as gr
|
23 |
+
|
24 |
+
# Define the Gradio interface
|
25 |
+
description = "Upload and download files"
|
26 |
+
title = "Upload and Download"
|
27 |
+
interface = gr.Interface(
|
28 |
+
fn=None, # We don't need a function for this example
|
29 |
+
BodyInput=gr.inputs.File(label="Upload Body Picture"),
|
30 |
+
FaceInput=gr.inputs.File(label="Upload Face Picture"),
|
31 |
+
title=title,
|
32 |
+
description=description,
|
33 |
+
)
|
34 |
+
|
35 |
+
# Launch the Gradio app
|
36 |
+
interface.launch()
|