Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-brewer committed Apr 5, 2024
1 parent ac682be commit 955f7d4
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions nbs/00_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"from jupyter_mentor.student_profile import StudentProfile\n",
"from jupyter_mentor.educator_course_overview import EducatorCourseOverview\n",
"from jupyter_mentor.student_course_overview import StudentCourseOverview\n",
"from jupyter_mentor.chatbot import ChatBot, ChatBotModel # StudentChatBot, EducatorChatBot\n",
"from jupyter_mentor.chatbot_tab import ChatBot, ChatBotModel, StudentChatBot, EducatorChatBot\n",
"from jupyter_mentor.file_viewer import FileViewerView"
]
},
Expand All @@ -53,6 +53,34 @@
"import os"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d25ddd77-b1e3-41e6-9254-686a04ee7633",
"metadata": {},
"outputs": [],
"source": [
"madlibs_list = [\n",
" {'name': 'Open Prompt',\n",
" 'description': '',\n",
" 'variables': {\n",
" 'input_text': 'value'\n",
" }, \n",
" 'template': '{input_text}' ,\n",
" 'placeholder': 'Message AI chatbot...',\n",
" },\n",
" {\n",
" 'name': 'Metaphor',\n",
" 'variables': {\n",
" 'concept': 'value'\n",
" }, \n",
" 'template': \"I'm having trouble understanding {concept}. Explain it as a metaphor\",\n",
" 'description': \"I'm having trouble understanding...\", \n",
" 'placeholder': 'why the sky is blue'\n",
" }\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -68,7 +96,7 @@
" \n",
" # initialize models\n",
" # self.model = DataModel(FILENAME)\n",
" self.educator_chatbot_model = ChatBotModel()\n",
" self.educator_chatbot_model = ChatBotModel(madlibs_list)\n",
"\n",
" \n",
" # initialize views\n",
Expand Down Expand Up @@ -129,7 +157,7 @@
" \n",
" # initialize models\n",
" # self.model = EducatorModel(FILENAME)\n",
" self.student_chatbot_model = ChatBotModel()\n",
" self.student_chatbot_model = ChatBotModel(madlibs_list)\n",
"\n",
" # initialize views\n",
" self.first = Login()\n",
Expand Down

0 comments on commit 955f7d4

Please sign in to comment.