mominah commited on
Commit
1eaf656
·
verified ·
1 Parent(s): ff72c31

Update routes.py

Browse files
Files changed (1) hide show
  1. routes.py +1 -2
routes.py CHANGED
@@ -91,8 +91,7 @@ def create_bot(prompt_type: str = Form(...)):
91
  prompt_template = PromptTemplates.get_quiz_solving_prompt()
92
 
93
  # Set the custom prompt template and create the global bot.
94
- trainer.set_custom_prompt_template(GLOBAL_BOT_ID, prompt_template)
95
- trainer.create_bot(GLOBAL_BOT_ID)
96
  return {"message": f"Bot {GLOBAL_BOT_ID} created successfully."}
97
  except Exception as e:
98
  raise HTTPException(status_code=500, detail=str(e))
 
91
  prompt_template = PromptTemplates.get_quiz_solving_prompt()
92
 
93
  # Set the custom prompt template and create the global bot.
94
+ trainer.create_bot(GLOBAL_BOT_ID,prompt_template)
 
95
  return {"message": f"Bot {GLOBAL_BOT_ID} created successfully."}
96
  except Exception as e:
97
  raise HTTPException(status_code=500, detail=str(e))