Spaces:
Sleeping
Sleeping
use python3 explicitly, add startup logging
Browse filesFiles changed (2)
- Dockerfile+1-1
- app.py+5-1
1 unmodified line234551 unmodified lineWORKDIR /appCOPY app.py .EXPOSE 7860CMD ["python", "-u", "app.py"]CMD ["python3", "-u", "app.py"]1234566 unmodified lines1314151617181519import http.serverimport jsonimport sys
class Handler(http.server.BaseHTTPRequestHandler): def do_GET(self):6 unmodified lines def log_message(self, format, *args): pass
if __name__ == "__main__": sys.stderr.write(f"Binding to 0.0.0.0:7860\n") sys.stderr.flush()http.server.HTTPServer(("0.0.0.0", 7860), Handler).serve_forever() http.server.HTTPServer(("0.0.0.0", 7860), Handler).serve_forever()Dockerfile+1-1
app.py+5-1