Spaces:
Running
Running
viktor
commited on
Commit
·
dd49bd2
1
Parent(s):
153c5bb
feat. update configs
Browse files- README.md +1 -1
- src/components/auth-error-popup.tsx +2 -2
- src/components/preview.tsx +2 -2
- src/lib/constants.ts +2 -3
README.md
CHANGED
|
@@ -7,7 +7,7 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
app_port: 5001
|
| 10 |
-
short_description:
|
| 11 |
models:
|
| 12 |
- deepseek-ai/DeepSeek-V3-0324
|
| 13 |
- Qwen/Qwen3-235B-A22B
|
|
|
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
app_port: 5001
|
| 10 |
+
short_description: Novita Anysite shows how to use Novita to build a website
|
| 11 |
models:
|
| 12 |
- deepseek-ai/DeepSeek-V3-0324
|
| 13 |
- Qwen/Qwen3-235B-A22B
|
src/components/auth-error-popup.tsx
CHANGED
|
@@ -27,8 +27,8 @@ export function AuthErrorPopup({
|
|
| 27 |
</button>
|
| 28 |
)}
|
| 29 |
<div className="flex flex-col items-center">
|
| 30 |
-
<p className="mb-3 text-center">
|
| 31 |
-
<a href={authUrl} className="
|
| 32 |
<img
|
| 33 |
src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg-dark.svg"
|
| 34 |
alt="Sign in with Hugging Face"
|
|
|
|
| 27 |
</button>
|
| 28 |
)}
|
| 29 |
<div className="flex flex-col items-center">
|
| 30 |
+
<p className="mb-3 text-center">Sign in continue</p>
|
| 31 |
+
<a href={authUrl} className="block w-[214px] h-[40px]">
|
| 32 |
<img
|
| 33 |
src="https://huggingface.co/datasets/huggingface/badges/resolve/main/sign-in-with-huggingface-lg-dark.svg"
|
| 34 |
alt="Sign in with Hugging Face"
|
src/components/preview.tsx
CHANGED
|
@@ -123,7 +123,7 @@ export const Preview = forwardRef<PreviewRef, PreviewProps>(function Preview(
|
|
| 123 |
if (onAuthErrorChange) {
|
| 124 |
onAuthErrorChange(true);
|
| 125 |
}
|
| 126 |
-
throw new Error('
|
| 127 |
}
|
| 128 |
} catch (e) {
|
| 129 |
// Fall back to default auth error handling if JSON parsing fails
|
|
@@ -131,7 +131,7 @@ export const Preview = forwardRef<PreviewRef, PreviewProps>(function Preview(
|
|
| 131 |
if (onAuthErrorChange) {
|
| 132 |
onAuthErrorChange(true);
|
| 133 |
}
|
| 134 |
-
throw new Error('
|
| 135 |
}
|
| 136 |
}
|
| 137 |
|
|
|
|
| 123 |
if (onAuthErrorChange) {
|
| 124 |
onAuthErrorChange(true);
|
| 125 |
}
|
| 126 |
+
throw new Error('Signing in to Hugging Face is required.');
|
| 127 |
}
|
| 128 |
} catch (e) {
|
| 129 |
// Fall back to default auth error handling if JSON parsing fails
|
|
|
|
| 131 |
if (onAuthErrorChange) {
|
| 132 |
onAuthErrorChange(true);
|
| 133 |
}
|
| 134 |
+
throw new Error('Signing in to Hugging Face is required.');
|
| 135 |
}
|
| 136 |
}
|
| 137 |
|
src/lib/constants.ts
CHANGED
|
@@ -74,12 +74,11 @@ export const DEFAULT_HTML = `<!DOCTYPE html>
|
|
| 74 |
<div class="container">
|
| 75 |
<h1 class="title">Welcome to <span class="highlight">Novita AnySite</span></h1>
|
| 76 |
<p class="subtitle">
|
| 77 |
-
This is a
|
| 78 |
-
the website you want to build, and our AI will generate it for you!
|
| 79 |
</p>
|
| 80 |
<div class="mt-8 text-left bg-gray-100 p-4 rounded-lg">
|
| 81 |
<p class="text-sm text-gray-600 mb-2">Example prompt:</p>
|
| 82 |
-
<p class="text-gray-800">"
|
| 83 |
</div>
|
| 84 |
</div>
|
| 85 |
</body>
|
|
|
|
| 74 |
<div class="container">
|
| 75 |
<h1 class="title">Welcome to <span class="highlight">Novita AnySite</span></h1>
|
| 76 |
<p class="subtitle">
|
| 77 |
+
This is a demo that shows how to use Novita LLM to build a website for you. Simply use the prompt input below to describe the website you want to create, and Novita Anysite will generate it for you!
|
|
|
|
| 78 |
</p>
|
| 79 |
<div class="mt-8 text-left bg-gray-100 p-4 rounded-lg">
|
| 80 |
<p class="text-sm text-gray-600 mb-2">Example prompt:</p>
|
| 81 |
+
<p class="text-gray-800">"Build a Snack web game"</p>
|
| 82 |
</div>
|
| 83 |
</div>
|
| 84 |
</body>
|