Spaces:
Running
Running
salomonsky
commited on
Commit
•
87f81a0
1
Parent(s):
6480c89
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ async def gen(prompt, basemodel, width, height, scales, steps, seed, upscale_fac
|
|
86 |
|
87 |
async def improve_prompt(prompt):
|
88 |
try:
|
89 |
-
instruction = ("With this idea, describe in English a detailed txt2img prompt in a single paragraph of up to
|
90 |
formatted_prompt = f"{prompt}: {instruction}"
|
91 |
response = llm_client.text_generation(formatted_prompt, max_new_tokens=200)
|
92 |
improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()
|
|
|
86 |
|
87 |
async def improve_prompt(prompt):
|
88 |
try:
|
89 |
+
instruction = ("With this idea, describe in English a detailed txt2img prompt in a single paragraph of up to 100 characters maximum, developing atmosphere, characters, lighting, and cameras.")
|
90 |
formatted_prompt = f"{prompt}: {instruction}"
|
91 |
response = llm_client.text_generation(formatted_prompt, max_new_tokens=200)
|
92 |
improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()
|