Spaces:
Running
Running
salomonsky
commited on
Commit
•
f45164e
1
Parent(s):
ac00586
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ async def gen(prompt, basemodel, width, height, scales, steps, seed, upscale_fac
|
|
69 |
|
70 |
async def improve_prompt(prompt):
|
71 |
try:
|
72 |
-
instruction = ("With this idea, describe in English a detailed img2vid prompt in a single paragraph of up to 200 characters
|
73 |
formatted_prompt = f"{prompt}: {instruction}"
|
74 |
response = llm_client.text_generation(formatted_prompt, max_new_tokens=200)
|
75 |
improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()
|
|
|
69 |
|
70 |
async def improve_prompt(prompt):
|
71 |
try:
|
72 |
+
instruction = ("With this idea, describe in English a detailed img2vid prompt in a single paragraph of up to 200 characters maximum, developing atmosphere, characters, lighting, and cameras.")
|
73 |
formatted_prompt = f"{prompt}: {instruction}"
|
74 |
response = llm_client.text_generation(formatted_prompt, max_new_tokens=200)
|
75 |
improved_text = response['generated_text'].strip() if 'generated_text' in response else response.strip()
|