Spaces:
Running
Running
Commit
·
a8e7658
1
Parent(s):
1b4a1df
refactor: Rebrand DeepSite to AutoSite and update inference provider
Browse files- Renamed all instances of DeepSite to AutoSite throughout the codebase
- Changed model reference from DeepSeek-V3-0324 to DeepSeek-R1-Distill-Qwen-32B
- Updated inference provider to use HuggingFace instead of Fireworks/Sambanova
- Changed all URLs to reference samihalawa-autosite.hf.space
- Added autosite-color.svg asset based on the existing deepseek logo
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- README.md +1 -1
- index.html +3 -3
- server.js +3 -3
- src/assets/autosite-color.svg +1 -0
- src/components/header/header.tsx +2 -2
- src/components/tabs/tabs.tsx +3 -3
- src/utils/consts.ts +1 -1
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 🐳
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
|
|
1 |
---
|
2 |
+
title: AutoSite
|
3 |
emoji: 🐳
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
index.html
CHANGED
@@ -4,12 +4,12 @@
|
|
4 |
<meta charset="utf-8" />
|
5 |
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
-
<title>
|
8 |
<meta
|
9 |
name="description"
|
10 |
-
content="
|
11 |
helps you build websites with AI, no code required. Let's deploy your
|
12 |
-
website with
|
13 |
/>
|
14 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
15 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
4 |
<meta charset="utf-8" />
|
5 |
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
+
<title>AutoSite | Build with AI ✨</title>
|
8 |
<meta
|
9 |
name="description"
|
10 |
+
content="AutoSite is a web development tool that
|
11 |
helps you build websites with AI, no code required. Let's deploy your
|
12 |
+
website with AutoSite and enjoy the magic of AI."
|
13 |
/>
|
14 |
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
15 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
server.js
CHANGED
@@ -108,7 +108,7 @@ app.post("/api/deploy", checkUser, async (req, res) => {
|
|
108 |
if (!path) {
|
109 |
newHtml = html.replace(
|
110 |
/<\/body>/,
|
111 |
-
`<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <a href="https://
|
112 |
);
|
113 |
}
|
114 |
|
@@ -148,7 +148,7 @@ colorTo: blue
|
|
148 |
sdk: static
|
149 |
pinned: false
|
150 |
tags:
|
151 |
-
-
|
152 |
---
|
153 |
|
154 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference`;
|
@@ -564,7 +564,7 @@ ONLY output the changes in this format. Do NOT output the full HTML file again.`
|
|
564 |
|
565 |
const chatCompletion = client.chatCompletionStream({
|
566 |
model: MODEL_ID,
|
567 |
-
provider:
|
568 |
messages: messages,
|
569 |
max_tokens: 6_000, // Keep max_tokens reasonable
|
570 |
temperature: isFollowUp ? 0 : undefined, // Set temperature to 0 for follow-ups, otherwise use default
|
|
|
108 |
if (!path) {
|
109 |
newHtml = html.replace(
|
110 |
/<\/body>/,
|
111 |
+
`<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <a href="https://samihalawa-autosite.hf.space" style="color: #fff;" target="_blank" >AutoSite</a> <img src="https://samihalawa-autosite.hf.space/logo.svg" alt="AutoSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>`
|
112 |
);
|
113 |
}
|
114 |
|
|
|
148 |
sdk: static
|
149 |
pinned: false
|
150 |
tags:
|
151 |
+
- autosite
|
152 |
---
|
153 |
|
154 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference`;
|
|
|
564 |
|
565 |
const chatCompletion = client.chatCompletionStream({
|
566 |
model: MODEL_ID,
|
567 |
+
provider: "hf-inference", // Use HuggingFace inference for all requests
|
568 |
messages: messages,
|
569 |
max_tokens: 6_000, // Keep max_tokens reasonable
|
570 |
temperature: isFollowUp ? 0 : undefined, // Set temperature to 0 for follow-ups, otherwise use default
|
src/assets/autosite-color.svg
ADDED
|
src/components/header/header.tsx
CHANGED
@@ -16,10 +16,10 @@ function Header({
|
|
16 |
<h1 className="text-white text-lg lg:text-xl font-bold flex items-center justify-start">
|
17 |
<img
|
18 |
src={Logo}
|
19 |
-
alt="
|
20 |
className="size-6 lg:size-8 mr-2"
|
21 |
/>
|
22 |
-
|
23 |
</h1>
|
24 |
<p className="text-gray-700 max-md:hidden">|</p>
|
25 |
<button
|
|
|
16 |
<h1 className="text-white text-lg lg:text-xl font-bold flex items-center justify-start">
|
17 |
<img
|
18 |
src={Logo}
|
19 |
+
alt="AutoSite Logo"
|
20 |
className="size-6 lg:size-8 mr-2"
|
21 |
/>
|
22 |
+
AutoSite
|
23 |
</h1>
|
24 |
<p className="text-gray-700 max-md:hidden">|</p>
|
25 |
<button
|
src/components/tabs/tabs.tsx
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import
|
2 |
|
3 |
function Tabs({ children }: { children?: React.ReactNode }) {
|
4 |
return (
|
@@ -14,11 +14,11 @@ function Tabs({ children }: { children?: React.ReactNode }) {
|
|
14 |
</div>
|
15 |
<div className="flex items-center justify-end gap-3">
|
16 |
<a
|
17 |
-
href="https://huggingface.co/deepseek-ai/DeepSeek-
|
18 |
target="_blank"
|
19 |
className="text-[12px] text-gray-300 hover:brightness-120 flex items-center gap-1 font-code"
|
20 |
>
|
21 |
-
Powered by <img src={
|
22 |
</a>
|
23 |
{children}
|
24 |
</div>
|
|
|
1 |
+
import AutoSite from "./../../assets/autosite-color.svg";
|
2 |
|
3 |
function Tabs({ children }: { children?: React.ReactNode }) {
|
4 |
return (
|
|
|
14 |
</div>
|
15 |
<div className="flex items-center justify-end gap-3">
|
16 |
<a
|
17 |
+
href="https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B"
|
18 |
target="_blank"
|
19 |
className="text-[12px] text-gray-300 hover:brightness-120 flex items-center gap-1 font-code"
|
20 |
>
|
21 |
+
Powered by <img src={AutoSite} className="size-5" /> AutoSite
|
22 |
</a>
|
23 |
{children}
|
24 |
</div>
|
src/utils/consts.ts
CHANGED
@@ -41,7 +41,7 @@ export const defaultHTML = `<!DOCTYPE html>
|
|
41 |
<span>I'm ready to work,</span><br />
|
42 |
Ask me anything.
|
43 |
</h1>
|
44 |
-
<img src="https://
|
45 |
<script></script>
|
46 |
</body>
|
47 |
</html>
|
|
|
41 |
<span>I'm ready to work,</span><br />
|
42 |
Ask me anything.
|
43 |
</h1>
|
44 |
+
<img src="https://samihalawa-autosite.hf.space/arrow.svg" class="arrow" />
|
45 |
<script></script>
|
46 |
</body>
|
47 |
</html>
|