Errolmking commited on
Commit
843e388
·
1 Parent(s): 118bdfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -171,7 +171,7 @@ unit_generator_prompt = """
171
  Character: Make a list of 5 opportunity that this unit can support the learners development towards the "portrait" of a graduate. Each opportunity should identify the trait and how it might be applied.
172
  """
173
 
174
- unit_generator = SingleInputAgent(prompt_template=unit_generator_prompt)
175
 
176
  lesson_idea_generator_prompt = """
177
  Below is a curriculum unit expressed using the understanding by design methodology ( delimited by the triple dollar signs).
@@ -182,7 +182,7 @@ lesson_idea_generator_prompt = """
182
  Each idea should include a title, a one sentence description of the activity, a one sentence description of how it addresses key concepts from the unit.
183
  """
184
 
185
- lesson_idea_generator = SingleInputAgent(prompt_template=lesson_idea_generator_prompt)
186
 
187
  lesson_builder_prompt = """
188
  The learning unit details are provided below (delimited by triple percent signs):
@@ -201,7 +201,7 @@ Unit Map: Make a list of the referenced unit details. Reference relevant unit de
201
 
202
  """
203
 
204
- lesson_builder = SingleInputAgent(prompt_template=lesson_builder_prompt)
205
 
206
  def generate_unit(input):
207
  for next_token, content in unit_generator.stream(input):
 
171
  Character: Make a list of 5 opportunity that this unit can support the learners development towards the "portrait" of a graduate. Each opportunity should identify the trait and how it might be applied.
172
  """
173
 
174
+ unit_generator = Agent(prompt_template=unit_generator_prompt)
175
 
176
  lesson_idea_generator_prompt = """
177
  Below is a curriculum unit expressed using the understanding by design methodology ( delimited by the triple dollar signs).
 
182
  Each idea should include a title, a one sentence description of the activity, a one sentence description of how it addresses key concepts from the unit.
183
  """
184
 
185
+ lesson_idea_generator = Agent(prompt_template=lesson_idea_generator_prompt)
186
 
187
  lesson_builder_prompt = """
188
  The learning unit details are provided below (delimited by triple percent signs):
 
201
 
202
  """
203
 
204
+ lesson_builder = Agent(prompt_template=lesson_builder_prompt)
205
 
206
  def generate_unit(input):
207
  for next_token, content in unit_generator.stream(input):