Spaces:
Running
Running
fix format
Browse files
front/src/components/ScriptMaker.tsx
CHANGED
@@ -156,6 +156,27 @@ export const ScriptMaker = ({
|
|
156 |
'Generate script'
|
157 |
)}
|
158 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
</div>
|
160 |
</div>
|
161 |
);
|
|
|
156 |
'Generate script'
|
157 |
)}
|
158 |
</button>
|
159 |
+
|
160 |
+
<div role="alert" className="alert text-sm">
|
161 |
+
<svg
|
162 |
+
xmlns="http://www.w3.org/2000/svg"
|
163 |
+
fill="none"
|
164 |
+
viewBox="0 0 24 24"
|
165 |
+
className="stroke-info h-6 w-6 shrink-0"
|
166 |
+
>
|
167 |
+
<path
|
168 |
+
strokeLinecap="round"
|
169 |
+
strokeLinejoin="round"
|
170 |
+
strokeWidth="2"
|
171 |
+
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
172 |
+
></path>
|
173 |
+
</svg>
|
174 |
+
<span>
|
175 |
+
The LLM may generate an incorrect YAML. If it fails on Step 2,
|
176 |
+
re-generate the script or adding a note to force it to follow YAML
|
177 |
+
format.
|
178 |
+
</span>
|
179 |
+
</div>
|
180 |
</div>
|
181 |
</div>
|
182 |
);
|
front/src/utils/prompts.ts
CHANGED
@@ -13,9 +13,9 @@ Some rules:
|
|
13 |
- Root level must have title, speakerNames, and turns.
|
14 |
- Each turn must have index, speakerName, text, and nextGapMilisecs.
|
15 |
- There can be from 20 to 30 turns in total.
|
16 |
-
- Only use base ASCII, do NOT use ALL CAPS, strings are wrapped inside "..."
|
17 |
- First turns should be the introduction for the theme and speakers.
|
18 |
- The script will be passed to TTS engine, make sure to write plain pronunciation, for example the www. must pronounced like "www dot"
|
|
|
19 |
|
20 |
There is an example (it is truncated):
|
21 |
|
@@ -24,15 +24,15 @@ There is an example (it is truncated):
|
|
24 |
title: "Podcast about the history of the Internet"
|
25 |
speakerNames:
|
26 |
- "Alice"
|
27 |
-
- Davy Peel
|
28 |
turns:
|
29 |
- index: 0
|
30 |
-
speakerName: Alice
|
31 |
-
text: It wouldn't be better to follow on technology with Magnus Nystedt than to actually cross over using technology to [Wellington](+1) International School and [Whiz Radio](+1). And who better to kick off the Whiz Radio segment than the person who motivates the students over at Whiz, Wellington International School, than Miss Davy Peel. [Welcome](+2) ... Tell me, give me, give me the scoop here, because I, I came and talked to you a little while ago and said, what do you guys think about doing some kind of a [TEDx](+1) thing? And then I just sort of backed off.
|
32 |
nextGapMilisecs: 100
|
33 |
- index: 1
|
34 |
-
speakerName: Davy Peel
|
35 |
-
text: [Absolutely](+1)... An amazing opportunity to get the kids a bit of kind of creative freedom and, and a forum.
|
36 |
nextGapMilisecs: 1000
|
37 |
\`\`\`
|
38 |
[END OF EXAMPLE]
|
|
|
13 |
- Root level must have title, speakerNames, and turns.
|
14 |
- Each turn must have index, speakerName, text, and nextGapMilisecs.
|
15 |
- There can be from 20 to 30 turns in total.
|
|
|
16 |
- First turns should be the introduction for the theme and speakers.
|
17 |
- The script will be passed to TTS engine, make sure to write plain pronunciation, for example the www. must pronounced like "www dot"
|
18 |
+
- Only use base ASCII, do NOT use ALL CAPS, strings are wrapped inside "..."
|
19 |
|
20 |
There is an example (it is truncated):
|
21 |
|
|
|
24 |
title: "Podcast about the history of the Internet"
|
25 |
speakerNames:
|
26 |
- "Alice"
|
27 |
+
- "Davy Peel"
|
28 |
turns:
|
29 |
- index: 0
|
30 |
+
speakerName: "Alice"
|
31 |
+
text: "It wouldn't be better to follow on technology with Magnus Nystedt than to actually cross over using technology to [Wellington](+1) International School and [Whiz Radio](+1). And who better to kick off the Whiz Radio segment than the person who motivates the students over at Whiz, Wellington International School, than Miss Davy Peel. [Welcome](+2) ... Tell me, give me, give me the scoop here, because I, I came and talked to you a little while ago and said, what do you guys think about doing some kind of a [TEDx](+1) thing? And then I just sort of backed off."
|
32 |
nextGapMilisecs: 100
|
33 |
- index: 1
|
34 |
+
speakerName: "Davy Peel"
|
35 |
+
text: "[Absolutely](+1)... An amazing opportunity to get the kids a bit of kind of creative freedom and, and a forum."
|
36 |
nextGapMilisecs: 1000
|
37 |
\`\`\`
|
38 |
[END OF EXAMPLE]
|