enzostvs HF staff commited on
Commit
d85eddb
·
1 Parent(s): 3da84c3

fix missing variable

Browse files
entrypoint.sh CHANGED
@@ -1,2 +1,2 @@
1
  #!/bin/bash
2
- npx prisma generate && npm run build && npx prisma generate && npx prisma migrate deploy && npx prisma db push && node build
 
1
  #!/bin/bash
2
+ npm run build && npx prisma generate && npx prisma migrate deploy && npx prisma db push && node build
src/lib/components/models/Submit.svelte CHANGED
@@ -46,8 +46,8 @@
46
  <div class="flex items-center justify-start gap-3">
47
  <img src={user.picture} alt="User avatar" class="w-8 h-8 rounded-full border border-white inline-block" />
48
  <div class="w-full text-left text-white">
49
- <p class="text-base font-semibold">{user.name}</p>
50
- <p class="text-xs leading-none text-neutral-400">{user.preferred_username}</p>
51
  </div>
52
  </div>
53
  {:else}
@@ -71,7 +71,7 @@
71
  </p>
72
  <Input
73
  value={model.repo}
74
- placeholder="{`${user.preferred_username}/`}"
75
  prefix="huggingface.co/"
76
  onChange={(value) => model.repo = value}
77
  />
 
46
  <div class="flex items-center justify-start gap-3">
47
  <img src={user.picture} alt="User avatar" class="w-8 h-8 rounded-full border border-white inline-block" />
48
  <div class="w-full text-left text-white">
49
+ <p class="text-base font-semibold">{user?.name}</p>
50
+ <p class="text-xs leading-none text-neutral-400">{user?.preferred_username}</p>
51
  </div>
52
  </div>
53
  {:else}
 
71
  </p>
72
  <Input
73
  value={model.repo}
74
+ placeholder="{`${user?.preferred_username ?? 'enzostvs'}/`}"
75
  prefix="huggingface.co/"
76
  onChange={(value) => model.repo = value}
77
  />