Spaces:
Runtime error
Runtime error
craftgamesnetwork
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -6,7 +6,7 @@ from huggingface_hub import create_repo, upload_file
|
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
|
9 |
-
@app.route('/run', methods=['
|
10 |
def run_model():
|
11 |
# Obter parâmetros da consulta da URL
|
12 |
endpoint = request.args.get('endpoint', default='https://pierroromeu-zbilatuca2testzz.hf.space')
|
@@ -77,7 +77,7 @@ def predict_gan():
|
|
77 |
|
78 |
return jsonify(result)
|
79 |
|
80 |
-
@app.route('/faceswapper', methods=['
|
81 |
def faceswapper():
|
82 |
# Obter parâmetros da consulta da URL
|
83 |
endpoint = request.args.get('endpoint', default='https://pierroromeu-faceswapper.hf.space/--replicas/u42x7/')
|
|
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
|
9 |
+
@app.route('/run', methods=['POST'])
|
10 |
def run_model():
|
11 |
# Obter parâmetros da consulta da URL
|
12 |
endpoint = request.args.get('endpoint', default='https://pierroromeu-zbilatuca2testzz.hf.space')
|
|
|
77 |
|
78 |
return jsonify(result)
|
79 |
|
80 |
+
@app.route('/faceswapper', methods=['POST'])
|
81 |
def faceswapper():
|
82 |
# Obter parâmetros da consulta da URL
|
83 |
endpoint = request.args.get('endpoint', default='https://pierroromeu-faceswapper.hf.space/--replicas/u42x7/')
|