Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,7 @@ def generate_story_from_caption(caption):
|
|
29 |
template= """You are a story teller.
|
30 |
You get a scenario as an input text, and generates a short story out of it.
|
31 |
Context: {scenario}
|
32 |
-
Story:
|
33 |
-
"""
|
34 |
prompt = PromptTemplate(template=template, input_variables=["scenario"])
|
35 |
#Let's create our LLM chain now
|
36 |
chain = LLMChain(prompt=prompt, llm=llm)
|
|
|
29 |
template= """You are a story teller.
|
30 |
You get a scenario as an input text, and generates a short story out of it.
|
31 |
Context: {scenario}
|
32 |
+
Story:"""
|
|
|
33 |
prompt = PromptTemplate(template=template, input_variables=["scenario"])
|
34 |
#Let's create our LLM chain now
|
35 |
chain = LLMChain(prompt=prompt, llm=llm)
|