asv7j commited on
Commit
06664a3
·
verified ·
1 Parent(s): 486aa0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- serve(app, host=args.host, port=args.port)
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)