Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def join_wav_files(input_files, output_file):
|
|
48 |
def generate_story(text, lang):
|
49 |
"""Generate a story using the langchain library and OpenAI's GPT-3 model."""
|
50 |
prompt = PromptTemplate(
|
51 |
-
input_variables=["text"],
|
52 |
template="""
|
53 |
You are a fun and seasoned storyteller.
|
54 |
Generate a short bedtime story for a 5 years old audience about {text}.
|
|
|
48 |
def generate_story(text, lang):
|
49 |
"""Generate a story using the langchain library and OpenAI's GPT-3 model."""
|
50 |
prompt = PromptTemplate(
|
51 |
+
input_variables=["text", "lang"],
|
52 |
template="""
|
53 |
You are a fun and seasoned storyteller.
|
54 |
Generate a short bedtime story for a 5 years old audience about {text}.
|