Skip to content

Commit

Permalink
better defaults and fixed transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgsolomon committed Oct 29, 2024
1 parent 0604683 commit 76b9254
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions generate/transcript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@ async function generateTranscript(topic, agentA, agentB, duration) {
messages: [
{
role: 'system',
content: `Create a dialogue for a short-form conversation on the topic of ${topic}...`,
content: `Create a dialogue for a short-form conversation on the topic of ${topic}. The conversation should be between two agents, ${agentA.replace(
'_',
' '
)} and ${agentB}, each with their unique mannerisms and speech patterns. ${agentA.replace(
'_',
' '
)} should engage with the topic with a sense of curiosity and a desire for practical understanding, while ${agentB.replace(
'_',
' '
)} offers a deep, analytical perspective. The dialogue should be engaging and include light humor, yet still provide meaningful insights into ${topic}. Limit the dialogue to a maximum of ${
duration * 7
} exchanges, aiming for a concise transcript that would last between ${duration} minutes. The person attribute should either be ${agentA} or ${agentB}. The line attribute should be that character's line of dialogue. It should be risque and edgy, so as to be interesting to watch. I also need an asset description under the asset attribute which would be a relevant search query to find an image which should be relevant to the overall topic of the conversation. The asset descriptions shouldn't be vague, but a description of something that you think would be a good image to go along with the conversation. Specificity is key. And don't include a direct mention of a politician in assets, if for example, Trump is mentioned, don't use the word Trump in the asset description, but instead something like white male with blonde hair combover ya know. The JSON format WHICH MUST BE ADHERED TO ALWAYS is as follows: { transcript: { [ {'person': 'the exact value of ${agentA} or ${agentB} depending on who is talking', 'line': 'their line of conversation in the dialog', asset: 'relevant search query based on the current line'} ] } }`,
},
{
role: 'user',
content: `generate a video about ${topic}...`,
content: `generate a video about ${topic}. Both the agents should talk about it in a way they would, but extremify their qualities and make the conversation risque so that it would be interesting to watch and edgy.`,
},
],
response_format: { type: 'json_object' },
Expand Down
4 changes: 2 additions & 2 deletions src/app/api/create/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function insertRecordToDB(body: any) {
url: "",
timestamp: new Date(),
duration: body.duration ?? 1,
music: body.music ?? "NONE",
music: body.music ?? "WII_SHOP_CHANNEL_TRAP",
background:
body.background !== null
? body.background
Expand All @@ -22,7 +22,7 @@ async function insertRecordToDB(body: any) {
: Math.random() > 0.5
? "GTA"
: "TRUCK",
fps: body.fps ?? 20,
fps: body.fps ?? 30,
aiGeneratedImages: true,
// body.aiGeneratedImages,
cleanSrt: false,
Expand Down

0 comments on commit 76b9254

Please sign in to comment.