Spaces:
Running
Running
GauravGajbhiye
commited on
Commit
•
a9b7f18
1
Parent(s):
3dae8d8
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def generate_poem(theme, style, keywords):
|
|
28 |
|
29 |
prompt = f"Write a poem about {theme} in the style of {style} using these keywords: {keywords}"
|
30 |
#output = generator(prompt, max_length=100, num_return_sequences=1)[0]['generated_text']
|
31 |
-
output = llm.invoke(prompt)
|
32 |
return output
|
33 |
|
34 |
submit = st.button("Enter to generate the Poem")
|
|
|
28 |
|
29 |
prompt = f"Write a poem about {theme} in the style of {style} using these keywords: {keywords}"
|
30 |
#output = generator(prompt, max_length=100, num_return_sequences=1)[0]['generated_text']
|
31 |
+
output = llm.invoke(prompt, max_length=100, num_return_sequences=1)
|
32 |
return output
|
33 |
|
34 |
submit = st.button("Enter to generate the Poem")
|