Spaces:
Build error
Build error
Update agents.py
Browse files
agents.py
CHANGED
|
@@ -96,10 +96,11 @@ def image_prompt_agent(post):
|
|
| 96 |
# # streaming=True,
|
| 97 |
# )
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
| 105 |
return blog
|
|
|
|
| 96 |
# # streaming=True,
|
| 97 |
# )
|
| 98 |
|
| 99 |
+
|
| 100 |
+
blog = llm.invoke(f"""write descriptive prompt for used in LinkedIn post.
|
| 101 |
+
Prompt is 'What you wish to see in the output image'.
|
| 102 |
+
A descriptive prompt that clearly defines elements, colors, and subjects will lead to better results.
|
| 103 |
+
For example: The sky was a crisp (blue:0.3) and (green:0.8) would convey a sky that was blue and green, but more green than blue. The weight applies to all words in the prompt. ,
|
| 104 |
+
Output only the prompt.
|
| 105 |
+
f**LinkedIn post**: {post}""")
|
| 106 |
return blog
|