theFisher86 commited on
Commit
2cc57d5
1 Parent(s): 583d821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -24,6 +24,14 @@ def faceSwap(file1, file2):
24
 
25
  print(response.text)
26
 
 
 
 
 
 
 
 
 
27
  return result
28
 
29
  # Create a Gradio interface with two file upload components
@@ -39,6 +47,7 @@ iface = gr.Interface(
39
  gr.Image(type="pil", show_download_button=True),
40
  gr.Image(type="pil", show_download_button=True)
41
  ],
 
42
  title="File Upload Interface",
43
  description="Upload two files and process them."
44
  )
 
24
 
25
  print(response.text)
26
 
27
+ url = "https://api.prodia.com/v1/job/123"
28
+
29
+ headers = {"accept": "application/json"}
30
+
31
+ response = requests.get(url, headers=headers)
32
+
33
+ print(response.text)
34
+
35
  return result
36
 
37
  # Create a Gradio interface with two file upload components
 
47
  gr.Image(type="pil", show_download_button=True),
48
  gr.Image(type="pil", show_download_button=True)
49
  ],
50
+ gr.Textbox(label="Job Number", placeholder="will fill in when job number received", interactive=False),
51
  title="File Upload Interface",
52
  description="Upload two files and process them."
53
  )