Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,12 @@ def create_args():
|
|
15 |
|
16 |
return Args()
|
17 |
|
18 |
-
def main():
|
19 |
"""Main entry point for the application."""
|
20 |
args = create_args()
|
21 |
app = create_app(args)
|
22 |
print(f"Running on http://{args.host}:{args.port}{args.url_prefix}")
|
23 |
-
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
-
main
|
|
|
15 |
|
16 |
return Args()
|
17 |
|
18 |
+
def main(environ, start_response):
|
19 |
"""Main entry point for the application."""
|
20 |
args = create_args()
|
21 |
app = create_app(args)
|
22 |
print(f"Running on http://{args.host}:{args.port}{args.url_prefix}")
|
23 |
+
return app(environ, start_response)
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
+
serve(main, host="0.0.0.0", port=7860)
|