mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
remove junk
This commit is contained in:
parent
4dc509ae54
commit
4987e7bec1
3 changed files with 1 additions and 111378 deletions
File diff suppressed because one or more lines are too long
107690
tinygrad/viz/js/tracing.js
107690
tinygrad/viz/js/tracing.js
File diff suppressed because one or more lines are too long
|
|
@ -125,7 +125,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||
def do_GET(self):
|
||||
ret, status_code, content_type = b"", 200, "text/html"
|
||||
|
||||
if (fn:={"/":"index", "/profiler":"perfetto", "/chrome":"chrome"}.get((url:=urlparse(self.path)).path)):
|
||||
if (fn:={"/":"index", "/profiler":"perfetto"}.get((url:=urlparse(self.path)).path)):
|
||||
with open(os.path.join(os.path.dirname(__file__), f"{fn}.html"), "rb") as f: ret = f.read()
|
||||
elif self.path.startswith(("/assets/", "/js/")) and '/..' not in self.path:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue