jbilcke-hf HF staff commited on
Commit
44b9fb1
·
1 Parent(s): ab75c71
Files changed (2) hide show
  1. .env +1 -1
  2. src/app/queries/getSound.ts +3 -2
.env CHANGED
@@ -1,3 +1,3 @@
1
  NEXT_PUBLIC_BASE_URL=https://jbilcke-hf-fishtank.hf.space
2
  # NEXT_PUBLIC_RENDERING_ENGINE_API=https://hysts-zeroscope-v2.hf.space
3
- RENDERING_ENGINE_API=https://jbilcke-hf-videochain.hf.space
 
1
  NEXT_PUBLIC_BASE_URL=https://jbilcke-hf-fishtank.hf.space
2
  # NEXT_PUBLIC_RENDERING_ENGINE_API=https://hysts-zeroscope-v2.hf.space
3
+ RENDERING_ENGINE_API=https://jbilcke-hf-videochain-api.hf.space
src/app/queries/getSound.ts CHANGED
@@ -44,6 +44,7 @@ export const getSound = async ({
44
  `You must imagine a sound effect in reaction to the player action.`,
45
  `Here are some examples, but don't copy them verbatim:\n`,
46
  `- "An excited crowd cheering at a sports game"\n`,
 
47
  `- "A cat is meowing for attention"\n`,
48
  `- "Birds singing sweetly in a blooming garden"\n`,
49
  `- "A modern synthesizer creating futuristic soundscapes"\n`,
@@ -64,11 +65,11 @@ export const getSound = async ({
64
  try {
65
  result = await predict(prompt)
66
  } catch (err) {
67
- console.log(`prediction of the dialogue failed, trying again..`)
68
  try {
69
  result = await predict(prompt)
70
  } catch (err) {
71
- console.error(`prediction of the dialogue failed again!`)
72
  throw new Error(`failed to generate the dialogue ${err}`)
73
  }
74
  }
 
44
  `You must imagine a sound effect in reaction to the player action.`,
45
  `Here are some examples, but don't copy them verbatim:\n`,
46
  `- "An excited crowd cheering at a sports game"\n`,
47
+ `- "A wooden door opens"\n`,
48
  `- "A cat is meowing for attention"\n`,
49
  `- "Birds singing sweetly in a blooming garden"\n`,
50
  `- "A modern synthesizer creating futuristic soundscapes"\n`,
 
65
  try {
66
  result = await predict(prompt)
67
  } catch (err) {
68
+ console.log(`prediction of the sound prompt failed, trying again..`)
69
  try {
70
  result = await predict(prompt)
71
  } catch (err) {
72
+ console.error(`prediction of the sound prompt failed again!`)
73
  throw new Error(`failed to generate the dialogue ${err}`)
74
  }
75
  }