enzostvs HF staff commited on
Commit
c7d6af6
1 Parent(s): 1b58ad4

switch to fullname

Browse files
Files changed (1) hide show
  1. 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")