salomonsky commited on
Commit
8fb8596
1 Parent(s): d5730a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ async def gen(prompt, basemodel, width, height, scales, steps, seed, upscale_fac
63
 
64
  async def improve_prompt(prompt):
65
  try:
66
- instruction = "create a prompt with my idea and translate it into English (improve my text and add it), adding detailed descriptions of character, style, cinematography, cameras, atmosphere, and lighting for the best quality and realism, up max to 300 words."
67
  formatted_prompt = f"{instruction}: {prompt}"
68
  response = llm_client.text_generation(formatted_prompt, max_new_tokens=300)
69
  improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()
 
63
 
64
  async def improve_prompt(prompt):
65
  try:
66
+ instruction = "Take the following text input and expand it into a high quality and descriptive prompt to create a cinematic image, camera angles, lighting, realism atmosphere, and character details. Condense the narrative into two paragraphs (max. 200 words)"
67
  formatted_prompt = f"{instruction}: {prompt}"
68
  response = llm_client.text_generation(formatted_prompt, max_new_tokens=300)
69
  improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()