Spaces:
Runtime error
Runtime error
craftgamesnetwork
commited on
Commit
•
e1fc40e
1
Parent(s):
2c68506
Update main.py
Browse files
main.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import requests
|
2 |
-
from
|
3 |
-
from
|
|
|
|
|
4 |
|
5 |
app = Flask(__name__)
|
6 |
|
@@ -41,4 +43,4 @@ def faceswapper():
|
|
41 |
return jsonify({"error": "Falha ao hospedar a imagem."}), 500
|
42 |
|
43 |
if __name__ == '__main__':
|
44 |
-
app.run(debug=True)
|
|
|
1 |
import requests
|
2 |
+
from io import BytesIO
|
3 |
+
from flask import Flask, request, jsonify
|
4 |
+
from gradio_client import Client
|
5 |
+
from huggingface_hub import create_repo, upload_file
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
|
|
|
43 |
return jsonify({"error": "Falha ao hospedar a imagem."}), 500
|
44 |
|
45 |
if __name__ == '__main__':
|
46 |
+
app.run(debug=True)
|