Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix missing variable
Browse files- entrypoint.sh +1 -1
- src/lib/components/models/Submit.svelte +3 -3
entrypoint.sh
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
|
|
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
|
50 |
-
<p class="text-xs leading-none text-neutral-400">{user
|
51 |
</div>
|
52 |
</div>
|
53 |
{:else}
|
@@ -71,7 +71,7 @@
|
|
71 |
</p>
|
72 |
<Input
|
73 |
value={model.repo}
|
74 |
-
placeholder="{`${user
|
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 |
/>
|