viktor commited on
Commit
153c5bb
·
1 Parent(s): 85b81db

feat. update configs

Browse files
Files changed (3) hide show
  1. README.md +9 -3
  2. src/lib/constants.dev.ts +86 -0
  3. src/lib/constants.ts +5 -5
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Novita Vibe Coding
3
  emoji: 🐨
4
  colorFrom: yellow
5
  colorTo: yellow
@@ -7,7 +7,13 @@ sdk: docker
7
  pinned: false
8
  license: mit
9
  app_port: 5001
10
- short_description: This is a demo showing the use of Novita LLMs to vibe coding
 
 
 
 
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: Novita Anysite
3
  emoji: 🐨
4
  colorFrom: yellow
5
  colorTo: yellow
 
7
  pinned: false
8
  license: mit
9
  app_port: 5001
10
+ short_description: 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!
11
+ models:
12
+ - deepseek-ai/DeepSeek-V3-0324
13
+ - Qwen/Qwen3-235B-A22B
14
+ - Qwen/Qwen3-30B-A3B
15
+ - Qwen/Qwen3-32B
16
  ---
17
 
18
+ ## Credits
19
+ This space is inspired by https://huggingface.co/spaces/enzostvs/deepsite.
src/lib/constants.dev.ts ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const REDIRECT_URI =
2
+ process.env.REDIRECT_URI || `http://localhost:${process.env.APP_PORT || 5001}/api/auth/login`;
3
+
4
+ export const MODEL_CONFIG_PROMPT_IMPROVEMENT = {
5
+ id: "deepseek/deepseek-v3-0324",
6
+ max_tokens: 16_000,
7
+ }
8
+
9
+ const default_system_prompt = `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`;
10
+
11
+ export const MODEL_CONFIG_CODE_GENERATION = [
12
+ {
13
+ id: "deepseek/deepseek-v3-0324",
14
+ max_tokens: 16_000,
15
+ default_enable_thinking: false,
16
+ system_prompt: default_system_prompt,
17
+ },
18
+ {
19
+ id: "qwen/qwen3-235b-a22b-fp8",
20
+ max_tokens: 16_000,
21
+ default_enable_thinking: true,
22
+ system_prompt: default_system_prompt,
23
+ },
24
+ {
25
+ id: "qwen/qwen3-30b-a3b-fp8",
26
+ max_tokens: 16_000,
27
+ default_enable_thinking: true,
28
+ system_prompt: default_system_prompt,
29
+ },
30
+ {
31
+ id: "qwen/qwen3-32b-fp8",
32
+ max_tokens: 16_000,
33
+ default_enable_thinking: true,
34
+ system_prompt: default_system_prompt,
35
+ }
36
+ ];
37
+
38
+ export const DEFAULT_HTML = `<!DOCTYPE html>
39
+ <html lang="en">
40
+ <head>
41
+ <meta charset="UTF-8">
42
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
43
+ <title>Novita AnySite</title>
44
+ <script src="https://cdn.tailwindcss.com"></script>
45
+ <style>
46
+ body {
47
+ font-family: 'Arial', sans-serif;
48
+ background-color: #f5f5f5;
49
+ }
50
+ .container {
51
+ max-width: 800px;
52
+ margin: 0 auto;
53
+ padding: 40px 20px;
54
+ text-align: center;
55
+ }
56
+ .title {
57
+ font-size: 32px;
58
+ font-weight: bold;
59
+ margin-bottom: 20px;
60
+ color: #333;
61
+ }
62
+ .subtitle {
63
+ font-size: 18px;
64
+ color: #666;
65
+ margin-bottom: 30px;
66
+ line-height: 1.5;
67
+ }
68
+ .highlight {
69
+ color: #23d57c;
70
+ }
71
+ </style>
72
+ </head>
73
+ <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 simple demonstration page. Use the prompt input below to describe
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">"Create a landing page for a coffee shop with a hero section, menu highlights, and contact information."</p>
83
+ </div>
84
+ </div>
85
+ </body>
86
+ </html>`;
src/lib/constants.ts CHANGED
@@ -2,7 +2,7 @@ export const REDIRECT_URI =
2
  process.env.REDIRECT_URI || `http://localhost:${process.env.APP_PORT || 5001}/api/auth/login`;
3
 
4
  export const MODEL_CONFIG_PROMPT_IMPROVEMENT = {
5
- id: "deepseek/deepseek-v3-0324",
6
  max_tokens: 16_000,
7
  }
8
 
@@ -10,25 +10,25 @@ const default_system_prompt = `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to
10
 
11
  export const MODEL_CONFIG_CODE_GENERATION = [
12
  {
13
- id: "deepseek/deepseek-v3-0324",
14
  max_tokens: 16_000,
15
  default_enable_thinking: false,
16
  system_prompt: default_system_prompt,
17
  },
18
  {
19
- id: "qwen/qwen3-235b-a22b-fp8",
20
  max_tokens: 16_000,
21
  default_enable_thinking: true,
22
  system_prompt: default_system_prompt,
23
  },
24
  {
25
- id: "qwen/qwen3-30b-a3b-fp8",
26
  max_tokens: 16_000,
27
  default_enable_thinking: true,
28
  system_prompt: default_system_prompt,
29
  },
30
  {
31
- id: "qwen/qwen3-32b-fp8",
32
  max_tokens: 16_000,
33
  default_enable_thinking: true,
34
  system_prompt: default_system_prompt,
 
2
  process.env.REDIRECT_URI || `http://localhost:${process.env.APP_PORT || 5001}/api/auth/login`;
3
 
4
  export const MODEL_CONFIG_PROMPT_IMPROVEMENT = {
5
+ id: "deepseek-ai/DeepSeek-V3-0324",
6
  max_tokens: 16_000,
7
  }
8
 
 
10
 
11
  export const MODEL_CONFIG_CODE_GENERATION = [
12
  {
13
+ id: "deepseek-ai/DeepSeek-V3-0324",
14
  max_tokens: 16_000,
15
  default_enable_thinking: false,
16
  system_prompt: default_system_prompt,
17
  },
18
  {
19
+ id: "Qwen/Qwen3-235B-A22B",
20
  max_tokens: 16_000,
21
  default_enable_thinking: true,
22
  system_prompt: default_system_prompt,
23
  },
24
  {
25
+ id: "Qwen/Qwen3-30B-A3B",
26
  max_tokens: 16_000,
27
  default_enable_thinking: true,
28
  system_prompt: default_system_prompt,
29
  },
30
  {
31
+ id: "Qwen/Qwen3-32B",
32
  max_tokens: 16_000,
33
  default_enable_thinking: true,
34
  system_prompt: default_system_prompt,