Install MLX LM and openai:
pip install mlx-lm openai
| // Used in https://jina.ai/tokenizer (Aug. 14th version) | |
| // Define variables for magic numbers | |
| const MAX_HEADING_LENGTH = 6; | |
| const MAX_HEADING_CONTENT_LENGTH = 200; | |
| const MAX_HEADING_UNDERLINE_LENGTH = 200; | |
| const MAX_HTML_HEADING_ATTRIBUTES_LENGTH = 100; | |
| const MAX_LIST_ITEM_LENGTH = 200; | |
| const MAX_NESTED_LIST_ITEMS = 5; | |
| const MAX_LIST_INDENT_SPACES = 7; | |
| const MAX_BLOCKQUOTE_LINE_LENGTH = 200; |
| from great_tables import GT, md, html, system_fonts | |
| import pandas as pd | |
| power_cie_prepared_tbl = pd.read_csv("./data/2023_cie_power_cons.csv") | |
| # Create a Great Tables object | |
| ciep_gt_tbl = GT(data=power_cie_prepared_tbl) | |
| # Apply wider color ranges & formatting | |
| gt_tbl = ciep_gt_tbl \ |
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| coo = !git fetch && git checkout | |
| br = branch | |
| brd = branch -d | |
| brD = branch -D | |
| merged = branch --merged | |
| st = status | |
| aa = add -A . |
| # Some options that may or may not be applicable to you | |
| [user] | |
| name = Zach Olivare | |
| email = [email protected] | |
| [push] | |
| default = upstream | |
| [core] | |
| autocrlf = input # Force replacing CRLF line endings with LF | |
| ignorecase = false | |
| [merge] |
| # Some options that may or may not be applicable to you | |
| [user] | |
| name = Zach Olivare | |
| email = [email protected] | |
| [push] | |
| default = upstream | |
| [core] | |
| autocrlf = input # Force replacing CRLF line endings with LF | |
| ignorecase = false | |
| [merge] |
| # https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c | |
| [metadata] | |
| name = {name} | |
| version = file: {name}/_version.txt | |
| author = Martin Larralde | |
| author_email = [email protected] | |
| url = https://github.com/althonos/{name} | |
| description = {description} | |
| long_description = file: README.md |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |