windmaple commited on
Commit
3efccc9
1 Parent(s): 0570e97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -5,18 +5,4 @@ import subprocess
5
 
6
  from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
7
 
8
- #subprocess.Popen(["gunicorn", "myapp:get_response", "--bind=0.0.0.0:7860"])
9
- #subprocess.Popen(["gunicorn", "myapp:get_wsgi_app", "--bind=0.0.0.0:7860"])
10
  subprocess.run("GUNICORN_CMD_ARGS='--timeout=500 --bind=0.0.0.0:7860' gunicorn 'quickstart_sst_demo:get_wsgi_app()'", shell=True)
11
-
12
- class RequestHandler(SimpleHTTPRequestHandler):
13
- def do_GET(self):
14
- if self.path == "/":
15
- self.path = "index.html"
16
-
17
- return SimpleHTTPRequestHandler.do_GET(self)
18
-
19
-
20
- server = ThreadingHTTPServer(("", 8080), RequestHandler)
21
-
22
- server.serve_forever()
 
5
 
6
  from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer
7
 
 
 
8
  subprocess.run("GUNICORN_CMD_ARGS='--timeout=500 --bind=0.0.0.0:7860' gunicorn 'quickstart_sst_demo:get_wsgi_app()'", shell=True)