Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -283,7 +283,7 @@ def gen_text(prompt, hf_model='meta-llama/Llama-2-70b-chat-hf', hf_token=None, p
|
|
| 283 |
|
| 284 |
def gen_art(editor, cover_art_image, gen_cover_art_prompt):
|
| 285 |
if gen_cover_art_prompt.strip() == "":
|
| 286 |
-
ppm = get_new_ppm(f"""describe the story below as a movie poster. give me the caption ONLY.
|
| 287 |
--------------------------------
|
| 288 |
{editor}""")
|
| 289 |
cover_art_prompt = gen_text(ppm.build_prompts(), hf_model=MODEL_ID, hf_token=TOKEN)
|
|
|
|
| 283 |
|
| 284 |
def gen_art(editor, cover_art_image, gen_cover_art_prompt):
|
| 285 |
if gen_cover_art_prompt.strip() == "":
|
| 286 |
+
ppm = get_new_ppm(f"""describe the story below as a movie poster with ONLY general terms and adjectives. give me the caption ONLY.
|
| 287 |
--------------------------------
|
| 288 |
{editor}""")
|
| 289 |
cover_art_prompt = gen_text(ppm.build_prompts(), hf_model=MODEL_ID, hf_token=TOKEN)
|