Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 224 |
-
|
| 225 |
-
await serve(app,
|
| 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())
|