73 | {renderLatexText(paper.name)} 74 |
75 | {paper.authors && ( 76 |121 | Related HuggingFace 🤗 Models 122 |
123 |184 | Abstract 185 |
186 |187 | {renderLatexText(paper.abstract)} 188 |
189 |
3 | 7 | A helpful directory of all the papers from NEURIPS 2024, powered with lightning fast inference from Cerebras. 8 |
9 | 10 | ## Environment Variables 11 | 12 | This project requires the following environment variables to be set in your `.env` file: 13 | 14 | | Variable | Description | 15 | |----------|-------------| 16 | | `CEREBRAS_API_KEY` | Your Cerebras API key for accessing their inference API | 17 | | `POSTGRES_URL` | PostgreSQL connection string for the database | 18 | | `HUGGINGFACE_API_KEY` | HuggingFace API key for additional model access | 19 | 20 | You can obtain these keys from: 21 | - Cerebras API Key: Contact Cerebras for access 22 | - PostgreSQL URL: Set up a PostgreSQL database (e.g. via Vercel Postgres or Supabase) 23 | - HuggingFace API Key: Get from [HuggingFace settings](https://huggingface.co/settings/tokens) 24 | 25 | Create a `.env` file in the root directory and add these variables: 26 | -------------------------------------------------------------------------------- /components/custom/block-stream-handler.tsx: -------------------------------------------------------------------------------- 1 | import { JSONValue } from 'ai'; 2 | import { Dispatch, memo, SetStateAction } from 'react'; 3 | 4 | import { UIBlock } from './block'; 5 | import { useBlockStream } from './use-block-stream'; 6 | 7 | interface BlockStreamHandlerProps { 8 | setBlock: Dispatch
19 |
25 | Powered by
26 |
31 |
36 |
37 |
50 |
51 | {React.Children.map(children, child =>
52 | typeof child === 'string' ? renderLatexInText(child) : child
53 | )}
54 |
55 |
56 | ) : (
57 |
61 | {React.Children.map(children, child =>
62 | typeof child === 'string' ? renderLatexInText(child) : child
63 | )}
64 |
65 | );
66 | },
67 | p: withLatexSupport('p', ''),
68 | strong: withLatexSupport('span', 'font-semibold'),
69 | em: withLatexSupport('em', ''),
70 | h1: withLatexSupport('h1', 'text-3xl font-semibold mt-6 mb-2'),
71 | h2: withLatexSupport('h2', 'text-2xl font-semibold mt-6 mb-2'),
72 | h3: withLatexSupport('h3', 'text-xl font-semibold mt-6 mb-2'),
73 | h4: withLatexSupport('h4', 'text-lg font-semibold mt-6 mb-2'),
74 | h5: withLatexSupport('h5', 'text-base font-semibold mt-6 mb-2'),
75 | h6: withLatexSupport('h6', 'text-sm font-semibold mt-6 mb-2'),
76 | li: withLatexSupport('li', 'py-1'),
77 | a: ({ node, children, ...props }: any) => (
78 |
84 | {React.Children.map(children, child =>
85 | typeof child === 'string' ? renderLatexInText(child) : child
86 | )}
87 |
88 | ),
89 | ol: ({ node, children, ...props }: any) => (
90 | {JSON.stringify(result, null, 2)}
93 | )}
94 | Loading paper...
48 |Error loading paper
60 |187 | {renderLatexText(paper.abstract)} 188 |
189 |
89 | Powered by
90 |
95 |
100 |
101 |
168 | We couldn't find any papers that matched your query. Try a 169 | different one 👆🏼! 170 |
171 |181 | Search results for: {searchQuery} 182 |
183 |205 | {renderLatexText(paper.abstract)} 206 |
207 |