Skip to content

Commit

Permalink
disable waitress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
FadyCoding committed Jul 18, 2024
1 parent 373cf4b commit 9f3a22b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debiaiServer/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: "2.0"
info:
version: 0.29.3
version: 0.29.4
title: DebiAI_debiaiServer_API
description: DebiAI backend api
contact:
Expand Down
5 changes: 4 additions & 1 deletion debiaiServer/websrv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import psutil
import requests
import logging
import connexion
import webbrowser
from flask_cors import CORS
Expand Down Expand Up @@ -99,14 +100,16 @@ def start_server(port, reloader=True, is_dev=True):
print("======================== RUN =======================", flush=True)
print(
" DebiAI is available at "
+ colored("http://localhost:" + str(port), DEBUG_COLOR)
+ colored("http://localhost:" + str(port), DEBUG_COLOR),
flush=True,
)
app = create_app()
if is_dev:
# Use flask server for development
app.run(port, debug=True, host="0.0.0.0", use_reloader=reloader)
else:
# Use waitress for production
logging.getLogger("requests").setLevel(logging.WARNING)
serve(app, host="0.0.0.0", port=port)


Expand Down

0 comments on commit 9f3a22b

Please sign in to comment.