Spaces:
Running
Running
switch to fullname
Browse files- app/actions/roast.ts +1 -1
app/actions/roast.ts
CHANGED
@@ -39,7 +39,7 @@ export async function roast({ username, language }: FormProps) {
|
|
39 |
const collectionsUpvotes = collections?.reduce((acc: number, item: any) => acc + item.upvotes, 0);
|
40 |
|
41 |
const datas = formatInformations(user, following.length, followers.length, spaces, models, collections, spacesLikes, modelsLikes, collectionsUpvotes);
|
42 |
-
const chat = transformForInference(datas, language, username);
|
43 |
|
44 |
const hf = new HfInference(process.env.HF_ACCESS_TOKEN);
|
45 |
const tokenizer = await AutoTokenizer.from_pretrained("philschmid/meta-llama-3-tokenizer")
|
|
|
39 |
const collectionsUpvotes = collections?.reduce((acc: number, item: any) => acc + item.upvotes, 0);
|
40 |
|
41 |
const datas = formatInformations(user, following.length, followers.length, spaces, models, collections, spacesLikes, modelsLikes, collectionsUpvotes);
|
42 |
+
const chat = transformForInference(datas, language, user.fullname ?? username);
|
43 |
|
44 |
const hf = new HfInference(process.env.HF_ACCESS_TOKEN);
|
45 |
const tokenizer = await AutoTokenizer.from_pretrained("philschmid/meta-llama-3-tokenizer")
|