modify_host

This commit is contained in:
ahmed531998 2023-04-05 22:33:54 +02:00
parent 555d181613
commit 071738ee4e
2 changed files with 1 additions and 4 deletions

View File

@ -6,6 +6,4 @@ COPY . .
RUN pip install -r requirements.txt
EXPOSE 4000
ENTRYPOINT ["python", "main.py"]

View File

@ -28,7 +28,6 @@ cors = CORS(app, resources={r"/predict": {"origins": url}, r"/feedback": {"origi
conn = psycopg2.connect(
host="janet-pg",
port=5432,
database=os.getenv("POSTGRES_DB"),
user=os.getenv("POSTGRES_USER"),
password=os.getenv("POSTGRES_PASSWORD"))
@ -168,4 +167,4 @@ if __name__ == "__main__":
'response_intent text NOT NULL);'
)
conn.commit()
app.run(host='127.0.0.1', port=4000)
app.run(host='0.0.0.0')