theFisher86 commited on
Commit
ee62acc
1 Parent(s): fb2b03d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import requests
3
  import os
4
- import json
5
 
6
  def faceSwap(file1, file2):
7
  # Process the uploaded files (e.g., read content, perform calculations, etc.)
@@ -34,7 +34,7 @@ def faceSwap(file1, file2):
34
  urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
35
  headers = {"accept": "application/json", "X-Prodia-Key": api_key}
36
  response = requests.get(urlBase + jobNumber, headers=headers)
37
- genStatus = response.json().get("status")
38
  print(f"Status: {genStatus}")
39
  result = f"https://images.prodia.xyz/{jobNumber}.png"
40
  #result = "yay"
 
1
  import gradio as gr
2
  import requests
3
  import os
4
+ #import json
5
 
6
  def faceSwap(file1, file2):
7
  # Process the uploaded files (e.g., read content, perform calculations, etc.)
 
34
  urlBase = f"https://api.prodia.com/v1/job/{jobNumber}"
35
  headers = {"accept": "application/json", "X-Prodia-Key": api_key}
36
  response = requests.get(urlBase + jobNumber, headers=headers)
37
+ genStatus = response.json()
38
  print(f"Status: {genStatus}")
39
  result = f"https://images.prodia.xyz/{jobNumber}.png"
40
  #result = "yay"