Spaces:
Running
Running
salomonsky
commited on
Commit
•
8fb8596
1
Parent(s):
d5730a4
Update app.py
Browse files
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 = "
|
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()
|