xeonm commited on
Commit
cbeeed0
·
1 Parent(s): 4b3108e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -20,11 +20,10 @@ def img2text(url):
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
-
26
- CONTEXT: {scenario}
27
- STORY;
28
  """
29
 
30
  prompt = PromptTemplate(template=template, input_variables=["scenario"])
 
20
  # make the story of it using LLM
21
  def generate_story(scenario):
22
  template = """
23
+ あなたは物語の語り部です;
24
+ 簡単な物語の背景に基づいて、30語以内の短い物語を生成することができます;
25
+ 背景: {scenario}
26
+ 物語:
 
27
  """
28
 
29
  prompt = PromptTemplate(template=template, input_variables=["scenario"])