craftgamesnetwork commited on
Commit
e1fc40e
1 Parent(s): 2c68506

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -3
main.py CHANGED
@@ -1,6 +1,8 @@
1
  import requests
2
- from flask import Flask, jsonify, request
3
- from gradio.client import Client
 
 
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)