Severian commited on
Commit
bcb8853
·
verified ·
1 Parent(s): 72b1379

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +5 -0
chatbot.py CHANGED
@@ -383,3 +383,8 @@ Let's start by exploring your innovative idea! What's the name of your idea, or
383
  # Always close the new session
384
  new_session.close()
385
  return value
 
 
 
 
 
 
383
  # Always close the new session
384
  new_session.close()
385
  return value
386
+
387
+ # Add this new method to handle the "Fill out form" button click
388
+ def fill_out_form_button(chatbot: InnovativeIdeaChatbot, current_stage: str, model: str, thinking_budget: int):
389
+ form_data = chatbot.fill_out_form(current_stage, model, thinking_budget)
390
+ return {stage["field"]: form_data[stage["field"]] for stage in STAGES}