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