akhil20187 commited on
Commit
d61414f
·
verified ·
1 Parent(s): 92835aa

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -22,7 +22,7 @@ async def generate_story(prompt: dict):
22
  print (prompt)
23
  prompt = json.dumps(prompt)
24
  client = InferenceClient(model="mistralai/Mixtral-8x7B-Instruct-v0.1", token=hf_token)
25
- response = client.text_generation(f"""<s><INST>You are a kids story writer. Your task is to analyse the input and provide a nice little short kids story. Given the prompt {prompt}, include "anime style, ultra HD, 4K" in every imageDescription prompt suitable for stable diffusion with upto 20 words, write 6 scenes, maximum of 10 words in comic scene of storyForTheComic, generate a JSON response like [/INST]</s>{[
26
  {
27
  "sceneNumber": 1,
28
  "imageDescription": "Describe the scene in 30 words ",
 
22
  print (prompt)
23
  prompt = json.dumps(prompt)
24
  client = InferenceClient(model="mistralai/Mixtral-8x7B-Instruct-v0.1", token=hf_token)
25
+ response = client.text_generation(f"""<s><INST>You are a kids story writer. Your task is to analyse the input and provide a nice little short kids story. Strictly don't write any NSFW, Porn or Illegal Content. Given the prompt {prompt}, include "anime style, ultra HD, 4K" in every imageDescription prompt suitable for stable diffusion with upto 20 words, write 6 scenes, maximum of 10 words in comic scene of storyForTheComic, generate a JSON response like [/INST]</s>{[
26
  {
27
  "sceneNumber": 1,
28
  "imageDescription": "Describe the scene in 30 words ",