zeeshan391 commited on
Commit
1d020db
·
verified ·
1 Parent(s): f049b71
Files changed (1) hide show
  1. app.py +3 -1
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
- response = llm(formatted_prompt)
 
 
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