Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def llm_response(user_text, number_of_words, blog_audience):
|
|
| 14 |
You are an Expert Poem Writer. For the topic {user_text},
|
| 15 |
write a Poem in {number_of_words} words for children.
|
| 16 |
'''
|
| 17 |
-
prompt = PromptTemplate(template=ptemplate,input_variables=['user_text','number_of_words'
|
| 18 |
final_prompt = prompt.format(user_text=user_text, number_of_words=number_of_words, blog_audience=blog_audience)
|
| 19 |
# invoke llm to get result
|
| 20 |
result = llm.invoke(final_prompt)
|
|
|
|
| 14 |
You are an Expert Poem Writer. For the topic {user_text},
|
| 15 |
write a Poem in {number_of_words} words for children.
|
| 16 |
'''
|
| 17 |
+
prompt = PromptTemplate(template=ptemplate,input_variables=['user_text','number_of_words'])
|
| 18 |
final_prompt = prompt.format(user_text=user_text, number_of_words=number_of_words, blog_audience=blog_audience)
|
| 19 |
# invoke llm to get result
|
| 20 |
result = llm.invoke(final_prompt)
|