Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ def img2text(url):
|
|
20 |
# make the story of it using LLM
|
21 |
def generate_story(scenario):
|
22 |
template = """
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
"""
|
28 |
|
29 |
prompt = PromptTemplate(template=template, input_variables=["scenario"])
|
|
|
20 |
# make the story of it using LLM
|
21 |
def generate_story(scenario):
|
22 |
template = """
|
23 |
+
You are a story teller;
|
24 |
+
You can generate a short story based on a simple narrative, the story should be no more than 30 words;
|
25 |
+
CONTEXT: {scenario}
|
26 |
+
STORY;
|
27 |
"""
|
28 |
|
29 |
prompt = PromptTemplate(template=template, input_variables=["scenario"])
|