craftgamesnetwork commited on
Commit
b213d58
·
verified ·
1 Parent(s): 783f9ad

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -6,7 +6,6 @@ from huggingface_hub import create_repo, upload_file
6
 
7
  app = Flask(__name__)
8
 
9
- # Função para chamar a API de hospedagem de imagens
10
  def host_image(image_path):
11
  api_url = "https://wosocial.bubbleapps.io/version-test/api/1.1/wf/save"
12
  files = {'file': open(image_path, 'rb')}
@@ -96,7 +95,7 @@ def faceswapper():
96
 
97
  # Chamar a API Gradio
98
  client = Client(endpoint, upload_files=True)
99
- result = client.predict(
100
  user_photo,
101
  result_photo,
102
  api_name="/predict"
 
6
 
7
  app = Flask(__name__)
8
 
 
9
  def host_image(image_path):
10
  api_url = "https://wosocial.bubbleapps.io/version-test/api/1.1/wf/save"
11
  files = {'file': open(image_path, 'rb')}
 
95
 
96
  # Chamar a API Gradio
97
  client = Client(endpoint, upload_files=True)
98
+ result_path = client.predict(
99
  user_photo,
100
  result_photo,
101
  api_name="/predict"