theFisher86 commited on
Commit
679d980
1 Parent(s): 57859cc

Update app.py

Browse files

add co-pilot code

Files changed (1) hide show
  1. app.py +17 -10
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
- # Gradio Stuff
23
- def greet(name):
24
- return "Hello " + name + "!!"
25
-
26
- gr.Interface(
27
- fileUploadBody=gr.File(label="Upload Body Picture", type="filepath"),
28
- fileUploadFace=gr.File(label="Upload Face Picture", type="filepath"),
29
- ).launch()
 
 
 
 
 
 
 
 
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()