Spaces:
Sleeping
Sleeping
updated
Browse files
app.py
CHANGED
@@ -107,7 +107,9 @@ async def generate_story(story_request: StoryRequest):
|
|
107 |
# Extract the raw string from the `ChatPromptValue`
|
108 |
# formatted_text = formatted_prompt.to_string()
|
109 |
|
110 |
-
|
|
|
|
|
111 |
|
112 |
# final_prompt = prompt_template.format(text=story)
|
113 |
|
|
|
107 |
# Extract the raw string from the `ChatPromptValue`
|
108 |
# formatted_text = formatted_prompt.to_string()
|
109 |
|
110 |
+
chain = prompt | llm
|
111 |
+
response = chain.invoke(formatted_prompt)
|
112 |
+
# response = llm(formatted_prompt)
|
113 |
|
114 |
# final_prompt = prompt_template.format(text=story)
|
115 |
|