Update src/main.py
Browse files- src/main.py +1 -1
src/main.py
CHANGED
|
@@ -55,6 +55,6 @@ def handle_all_unsupported_mediatype_exceptions(exc):
|
|
| 55 |
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
-
serve(app, host='0.0.0.0', port=
|
| 59 |
#app.run()
|
| 60 |
|
|
|
|
| 55 |
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
+
serve(app, host='0.0.0.0', port=7860, threads=int(os.getenv('THREADS',1)),connection_limit=int(os.getenv('CONNECTION_LIMIT',500)), channel_timeout=int(os.getenv('CHANNEL_TIMEOUT',120)))
|
| 59 |
#app.run()
|
| 60 |
|