Jofthomas HF staff commited on
Commit
6ef4758
1 Parent(s): ed5d2d8

Update TextGen/router.py

Browse files
Files changed (1) hide show
  1. TextGen/router.py +3 -1
TextGen/router.py CHANGED
@@ -310,7 +310,9 @@ def generate_voice_eleven(message: VoiceMessage = None):
310
  @app.post("/generate_song")
311
  @app.get("/generate_song")
312
  async def generate_song(request:SongRequest):
313
- text=f"""You are a bard in a video game singing the tales of a little girl in red hood. The user request a song about : {request.prompt}"""
 
 
314
  print(text)
315
  song_lyrics=generate_lyrics({
316
  "prompt": f"{text}",
 
310
  @app.post("/generate_song")
311
  @app.get("/generate_song")
312
  async def generate_song(request:SongRequest):
313
+ backstory=main_npc_system_prompts["Bard"]
314
+ print(backstory)
315
+ text=f"""You are a bard in a video game singing the tales of a little girl in red hood adventuring in the dungeon behind the portal. Your backstory is {backstory} /n The user requested a song about : {request.prompt}"""
316
  print(text)
317
  song_lyrics=generate_lyrics({
318
  "prompt": f"{text}",