Spaces:
Sleeping
Sleeping
File size: 307 Bytes
81f6231 6027c7f ce672ca 81f6231 65e95aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from flask import Flask
from backend.file_uploads import upload_file
app = Flask(__name__)
@app.route("/", methods=["GET"])
def home():
return "API is running"
app.add_url_rule('/upload', 'upload_file', upload_file, methods=['POST'])
if __name__ == '__main__':
app.run(host="0.0.0.0", port=7860) |