I built an app in java and to run a CNN model I need a server
so the app will send an image to the server and the server will recognize the image and return the label.
I use firebase hosting and I performed the steps according to the documentation and got a domain: https://app.web.app/
I built a server and instead of localhost I put the domain:
import os
from flask import Flask, request, jsonify, render_template
import numpy as np
import pickle
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def hello():
return 'Hello World'
if __name__ == '__main__':
app.run(host="https://app.web.app", debug=True)
show me:
* Serving Flask app 'flaskServer' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
getaddrinfo failed
how I should build dynamic server in python?