Skip to content

Commit

Permalink
make tinychat local (tinygrad#7871)
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot authored Nov 24, 2024
1 parent 22d5def commit 5d28a20
Show file tree
Hide file tree
Showing 15 changed files with 1,388 additions and 19 deletions.
5 changes: 3 additions & 2 deletions examples/llama3.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ def enable_cors():
for key, value in cors_headers.items(): response.set_header(key, value)

@app.route("/<filename>")
def server_static(filename):
return static_file(filename, root=(Path(__file__).parent / "tinychat").as_posix())
def server_static(filename): return static_file(filename, root=(Path(__file__).parent / "tinychat").as_posix())
@app.route("/assets/<filename:path>")
def server_assets(filename): return static_file(filename, root=(Path(__file__).parent / "tinychat" / "assets").as_posix())
@app.route("/")
def index():
return static_file("index.html", root=(Path(__file__).parent / "tinychat").as_posix())
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d28a20

Please sign in to comment.