jbilcke commited on
Commit
ea4c342
Β·
1 Parent(s): da1838e

yearly maintenance update

Browse files
README.md CHANGED
@@ -8,7 +8,7 @@ pinned: false
8
  app_port: 7860
9
  ---
10
 
11
- Generate Hugging Face Spaces using meta-llama/Meta-Llama-3-70B-Instruct
12
 
13
  The apps may not always work and usually human work is necessary to finish them.
14
  See this project as "Hugging Face Space templates on steroids".
 
8
  app_port: 7860
9
  ---
10
 
11
+ Generate Hugging Face Spaces using deepseek-ai/DeepSeek-V3-0324
12
 
13
  The apps may not always work and usually human work is necessary to finish them.
14
  See this project as "Hugging Face Space templates on steroids".
public/index.html CHANGED
@@ -64,8 +64,8 @@
64
  <div class="flex flex-col text-stone-700 space-y-1 md:space-y-2">
65
  <p class="text-stone-700">
66
  Model used:
67
- <a href="https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct" class="underline" target="_blank">
68
- meta-llama/Meta-Llama-3-70B-Instruct (you need to accept the terms)
69
  </a>
70
  </p>
71
  <p>Powered by πŸ€— <a href="https://huggingface.co/inference-api" class="underline" target="_blank">Inference API</a></p>
@@ -74,7 +74,7 @@
74
  </p>
75
  <p class="text-stone-700" x-show="state === 'streaming'">
76
  Content size: <span x-text="humanFileSize(size, true, 2)"></span>. This version generates up
77
- to 4096 tokens.
78
  </p>
79
  </div>
80
  </div>
 
64
  <div class="flex flex-col text-stone-700 space-y-1 md:space-y-2">
65
  <p class="text-stone-700">
66
  Model used:
67
+ <a href="https://huggingface.co/deepseek-ai/DeepSeek-V3-0324" class="underline" target="_blank">
68
+ deepseek-ai/DeepSeek-V3-0324
69
  </a>
70
  </p>
71
  <p>Powered by πŸ€— <a href="https://huggingface.co/inference-api" class="underline" target="_blank">Inference API</a></p>
 
74
  </p>
75
  <p class="text-stone-700" x-show="state === 'streaming'">
76
  Content size: <span x-text="humanFileSize(size, true, 2)"></span>. This version generates up
77
+ to 7000 tokens.
78
  </p>
79
  </div>
80
  </div>
src/generateFiles.mts CHANGED
@@ -58,7 +58,7 @@ export const generateFiles = async (
58
  // error: `inputs` must have less than 4096 tokens.
59
 
60
  // for Llama-3 it is 8192
61
- max_new_tokens: 8192,
62
  temperature: 0.8,
63
  return_full_text: false,
64
  }
 
58
  // error: `inputs` must have less than 4096 tokens.
59
 
60
  // for Llama-3 it is 8192
61
+ max_new_tokens: 7000, // 8192,
62
  temperature: 0.8,
63
  return_full_text: false,
64
  }
src/getFlutterApp.mts ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { gradioDoc } from "./gradioDoc.mts"
2
+
3
+ export function getFlutterApp(prompt: string) {
4
+ const prefix = "# In main.dart:\n```"
5
+
6
+ const instructions = [
7
+ {
8
+ role: "system",
9
+ content: [
10
+ `You are a Dart developer, expert at crafting Flutter applications.
11
+ You must generate valid Dart code. Don't forget the requirements.txt files!`,
12
+ `Here is an example of a Flutter application:`,
13
+ gradioDoc
14
+ ].filter(item => item).join("\n")
15
+ },
16
+ {
17
+ role: "user",
18
+ content: `Please write, file by file, the source code for a Flutter project.
19
+ There is already a project with this structure:
20
+ - lib/main.dart
21
+ - pubspec.yaml
22
+ - cooking_llama.iml
23
+
24
+
25
+ Don't forget to write a README.md with the following header, or else you will be FIRED:
26
+ \`\`\`
27
+ ---
28
+ license: apache-2.0
29
+ title: <app name>
30
+ sdk: docker
31
+ emoji: πŸ‘€
32
+ colorFrom: green
33
+ colorTo: blue
34
+ ---
35
+ \`\`\`
36
+
37
+ The app is about: ${prompt}`,
38
+ }
39
+ ]
40
+
41
+ return { prefix, files: [], instructions }
42
+ }
src/getGradioApp.mts CHANGED
@@ -17,12 +17,12 @@ export function getGradioApp(prompt: string) {
17
  content: `Please write, file by file, the source code for a Gradio project.
18
 
19
  You MUST use the following Python modules:
20
- - gradio (version 3.39.0)
21
 
22
  You are free to use (if necessary) the following Python modules:
23
  - numpy
24
  - matplotlib
25
- - pytorch
26
  - diffusers
27
  - transformers
28
 
@@ -32,7 +32,7 @@ Don't forget to write a README.md with the following header, or else you will be
32
  license: apache-2.0
33
  title: <app name>
34
  sdk: gradio
35
- sdk_version: 3.39.0
36
  app_file: app.py
37
  emoji: πŸ‘€
38
  colorFrom: green
 
17
  content: `Please write, file by file, the source code for a Gradio project.
18
 
19
  You MUST use the following Python modules:
20
+ - gradio (version 5.23.3)
21
 
22
  You are free to use (if necessary) the following Python modules:
23
  - numpy
24
  - matplotlib
25
+ - torch
26
  - diffusers
27
  - transformers
28
 
 
32
  license: apache-2.0
33
  title: <app name>
34
  sdk: gradio
35
+ sdk_version: 5.23.3
36
  app_file: app.py
37
  emoji: πŸ‘€
38
  colorFrom: green
src/getStreamlitApp.mts CHANGED
@@ -19,7 +19,7 @@ export function getStreamlitApp(prompt: string) {
19
  Please limit yourself to the following Python modules:
20
  - numpy
21
  - matplotlib
22
- - pytorch
23
  - diffusers
24
  - transformers
25
 
 
19
  Please limit yourself to the following Python modules:
20
  - numpy
21
  - matplotlib
22
+ - torch
23
  - diffusers
24
  - transformers
25