Spaces:
Sleeping
Sleeping
Thomas G. Lopes
commited on
Commit
·
8744c54
1
Parent(s):
39ca151
lint
Browse files
src/routes/+page.server.ts
CHANGED
|
@@ -4,7 +4,8 @@ import type { PageServerLoad } from "./$types";
|
|
| 4 |
import { env } from "$env/dynamic/private";
|
| 5 |
|
| 6 |
export const load: PageServerLoad = async ({ fetch }) => {
|
| 7 |
-
const apiUrl =
|
|
|
|
| 8 |
const HF_TOKEN = env.HF_TOKEN;
|
| 9 |
|
| 10 |
const res = await fetch(apiUrl, {
|
|
|
|
| 4 |
import { env } from "$env/dynamic/private";
|
| 5 |
|
| 6 |
export const load: PageServerLoad = async ({ fetch }) => {
|
| 7 |
+
const apiUrl =
|
| 8 |
+
"https://huggingface.co/api/models?pipeline_tag=text-generation&inference_provider=hf-inference&filter=conversational";
|
| 9 |
const HF_TOKEN = env.HF_TOKEN;
|
| 10 |
|
| 11 |
const res = await fetch(apiUrl, {
|