Spaces:
Runtime error
Runtime error
acecalisto3
commited on
Commit
•
09788ed
1
Parent(s):
3c5d009
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())
|