cmagganas commited on
Commit
e6b41cb
·
verified ·
1 Parent(s): 90238e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -64,12 +64,12 @@ async def main(message: cl.Message):
64
  content=f"Proposed Architecture:\n{proposed_architecture.proposed_architecture}"
65
  ).send()
66
 
67
- feedback_message = await cl.AskUserMessage(content="What do you think about this proposed plan and alleged architecture?", timeout=300).send()
68
  if feedback_message:
69
- human_feedback_of_proposed_plan = feedback_message['output']
70
 
71
  revised_architecture = revise_architecture(proposed_architecture.proposed_architecture)
72
-
73
  await cl.Message(
74
  content=f"Revised Architecture:\n{revised_architecture.revised_proposed_architecture}"
75
  ).send()
@@ -85,7 +85,6 @@ async def main(message: cl.Message):
85
  await cl.Message(
86
  content="The results have been saved to output.md"
87
  ).send()
88
- else:
89
- await cl.Message(
90
- content="No feedback received. Exiting."
91
- ).send()
 
64
  content=f"Proposed Architecture:\n{proposed_architecture.proposed_architecture}"
65
  ).send()
66
 
67
+ feedback_message = await cl.AskUserMessage(content="What do you think about this proposed plan and alleged architecture?", timeout=60).send()
68
  if feedback_message:
69
+ human_feedback_of_proposed_plan = feedback_message["output"]
70
 
71
  revised_architecture = revise_architecture(proposed_architecture.proposed_architecture)
72
+
73
  await cl.Message(
74
  content=f"Revised Architecture:\n{revised_architecture.revised_proposed_architecture}"
75
  ).send()
 
85
  await cl.Message(
86
  content="The results have been saved to output.md"
87
  ).send()
88
+
89
+ # Load the starters
90
+ import starters