Spaces:
Build error
Build error
Leo Liu commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,7 @@ def img2text(url):
|
|
| 13 |
def text2story(text):
|
| 14 |
pipe = pipeline("text-generation",
|
| 15 |
model="pranavpsv/genre-story-generator-v2")
|
| 16 |
-
prompt_for_children = f"""Generate a fairy tale for children aged 3-10 based on: {text}
|
| 17 |
-
Story: Once upon a time,"""
|
| 18 |
|
| 19 |
generation_params = {
|
| 20 |
"max_new_tokens": 200,
|
|
|
|
| 13 |
def text2story(text):
|
| 14 |
pipe = pipeline("text-generation",
|
| 15 |
model="pranavpsv/genre-story-generator-v2")
|
| 16 |
+
prompt_for_children = f"""Generate a fairy tale for children aged 3-10 based on: {text}"""
|
|
|
|
| 17 |
|
| 18 |
generation_params = {
|
| 19 |
"max_new_tokens": 200,
|