wuyiqunLu commited on
Commit
d360551
·
unverified ·
1 Parent(s): bc1cf4e

fix: change hugging face default port (#94)

Browse files

Tested on personal space
<img width="1363" alt="image"
src="https://github.com/landing-ai/vision-agent-ui/assets/132986242/a448aa6f-eddf-40f7-a03a-340d4402f888">

Files changed (2) hide show
  1. README.md +1 -0
  2. components/chat/TopPrompt.tsx +13 -3
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: yellow
5
  colorTo: indigo
6
  sdk: docker
7
  pinned: false
 
8
  ---
9
 
10
  <a href="https://chat.vercel.ai/">
 
5
  colorTo: indigo
6
  sdk: docker
7
  pinned: false
8
+ app_port: 3000
9
  ---
10
 
11
  <a href="https://chat.vercel.ai/">
components/chat/TopPrompt.tsx CHANGED
@@ -43,9 +43,19 @@ export default async function TopPrompt({ chat, userId }: TopPrompt) {
43
  </div>
44
  <div className="flex-1 px-1 ml-2 overflow-hidden">
45
  <p className="leading-normal font-medium">
46
- <Link href="/sign-in" className="underline">
47
- Sign in
48
- </Link>{' '}
 
 
 
 
 
 
 
 
 
 
49
  to save and revisit your chat history!
50
  </p>
51
  </div>
 
43
  </div>
44
  <div className="flex-1 px-1 ml-2 overflow-hidden">
45
  <p className="leading-normal font-medium">
46
+ {process.env.NEXT_PUBLIC_IS_HUGGING_FACE ? (
47
+ <Link
48
+ href="https://va.landing.ai"
49
+ target="_blank"
50
+ className="underline"
51
+ >
52
+ Visit Landing AI{"'"}s website
53
+ </Link>
54
+ ) : (
55
+ <Link href="/sign-in" className="underline">
56
+ Sign in
57
+ </Link>
58
+ )}{' '}
59
  to save and revisit your chat history!
60
  </p>
61
  </div>