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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,13 +24,13 @@ def faceSwap(file1, file2):
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
 
 
24
 
25
  print(response.text)
26
 
27
+ urlBase = "https://api.prodia.com/v1/job/"
28
 
29
+ headers = {"accept": "application/json"}
30
 
31
+ response = requests.get(urlBase + jobNumber, headers=headers)
32
 
33
+ result = print(response.imageURL)
34
 
35
  return result
36