acecalisto3 commited on
Commit
09788ed
1 Parent(s): 3c5d009

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -219,10 +219,10 @@ async def main():
219
 
220
  # Run Flask app
221
  from hypercorn.asyncio import serve
222
- from hypercorn.config import Config
223
- config = Config()
224
- config.bind = ["localhost:5000"]
225
- await serve(app, config)
226
 
227
  if __name__ == "__main__":
228
  asyncio.run(main())
 
219
 
220
  # Run Flask app
221
  from hypercorn.asyncio import serve
222
+ from hypercorn.config import Config as HypercornConfig
223
+ hypercorn_config = HypercornConfig()
224
+ hypercorn_config.bind = ["localhost:5000"]
225
+ await serve(app, hypercorn_config)
226
 
227
  if __name__ == "__main__":
228
  asyncio.run(main())