Spaces:
Sleeping
Sleeping
Update chatbot.py
Browse files- 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}
|