mirror of
https://github.com/babysor/Realtime-Voice-Clone-Chinese.git
synced 2026-04-30 21:59:58 +08:00
Web server (#94)
* Init App * init server.py (#93) * init server.py * Update requirements.txt Add requirement Co-authored-by: auau <auau@test.com> Co-authored-by: babysor00 <babysor00@gmail.com> * Run web.py! Run web.py! Co-authored-by: balala <Ozgay@users.noreply.github.com> Co-authored-by: auau <auau@test.com>
This commit is contained in:
11
web.py
Normal file
11
web.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from web import webApp
|
||||
from gevent import pywsgi as wsgi
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = webApp()
|
||||
host = app.config.get("HOST")
|
||||
port = app.config.get("PORT")
|
||||
print(f"Web server: http://{host}:{port}")
|
||||
server = wsgi.WSGIServer((host, port), app)
|
||||
server.serve_forever()
|
||||
Reference in New Issue
Block a user