Upload folder using huggingface_hub
Browse files
nbs/01_clinical_tutor.ipynb
CHANGED
|
@@ -44,19 +44,7 @@
|
|
| 44 |
"execution_count": null,
|
| 45 |
"id": "477ba22b-55c1-467e-8206-a92f88a598fd",
|
| 46 |
"metadata": {},
|
| 47 |
-
"outputs": [
|
| 48 |
-
{
|
| 49 |
-
"ename": "ImportError",
|
| 50 |
-
"evalue": "cannot import name 'LearningCategory' from 'wardbuddy.learning_context' (C:\\Users\\deepa\\OneDrive\\Documents\\StudyBuddy\\wardbuddy\\wardbuddy\\learning_context.py)",
|
| 51 |
-
"output_type": "error",
|
| 52 |
-
"traceback": [
|
| 53 |
-
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
| 54 |
-
"\u001b[1;31mImportError\u001b[0m Traceback (most recent call last)",
|
| 55 |
-
"Cell \u001b[1;32mIn[3], line 12\u001b[0m\n\u001b[0;32m 10\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mpydantic\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m BaseModel\n\u001b[0;32m 11\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdotenv\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m load_dotenv\n\u001b[1;32m---> 12\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mwardbuddy\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mlearning_context\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m LearningContext, setup_logger, LearningCategory, SmartGoal, RotationContext\n\u001b[0;32m 15\u001b[0m \u001b[38;5;66;03m# Load environment variables\u001b[39;00m\n\u001b[0;32m 16\u001b[0m load_dotenv()\n",
|
| 56 |
-
"\u001b[1;31mImportError\u001b[0m: cannot import name 'LearningCategory' from 'wardbuddy.learning_context' (C:\\Users\\deepa\\OneDrive\\Documents\\StudyBuddy\\wardbuddy\\wardbuddy\\learning_context.py)"
|
| 57 |
-
]
|
| 58 |
-
}
|
| 59 |
-
],
|
| 60 |
"source": [
|
| 61 |
"#| export\n",
|
| 62 |
"from typing import Dict, List, Optional, Tuple, Any, AsyncGenerator\n",
|
|
|
|
| 44 |
"execution_count": null,
|
| 45 |
"id": "477ba22b-55c1-467e-8206-a92f88a598fd",
|
| 46 |
"metadata": {},
|
| 47 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
"source": [
|
| 49 |
"#| export\n",
|
| 50 |
"from typing import Dict, List, Optional, Tuple, Any, AsyncGenerator\n",
|
nbs/02_learning_interface.ipynb
CHANGED
|
@@ -521,7 +521,7 @@
|
|
| 521 |
" self.process_chat,\n",
|
| 522 |
" inputs=[msg, chatbot, state],\n",
|
| 523 |
" outputs=[chatbot, msg, state],\n",
|
| 524 |
-
" queue=
|
| 525 |
" ).then(\n",
|
| 526 |
" self._update_discussion_status,\n",
|
| 527 |
" inputs=[state],\n",
|
|
|
|
| 521 |
" self.process_chat,\n",
|
| 522 |
" inputs=[msg, chatbot, state],\n",
|
| 523 |
" outputs=[chatbot, msg, state],\n",
|
| 524 |
+
" queue=True # Important for streaming\n",
|
| 525 |
" ).then(\n",
|
| 526 |
" self._update_discussion_status,\n",
|
| 527 |
" inputs=[state],\n",
|
wardbuddy/learning_interface.py
CHANGED
|
@@ -432,7 +432,7 @@ class LearningInterface:
|
|
| 432 |
self.process_chat,
|
| 433 |
inputs=[msg, chatbot, state],
|
| 434 |
outputs=[chatbot, msg, state],
|
| 435 |
-
queue=
|
| 436 |
).then(
|
| 437 |
self._update_discussion_status,
|
| 438 |
inputs=[state],
|
|
|
|
| 432 |
self.process_chat,
|
| 433 |
inputs=[msg, chatbot, state],
|
| 434 |
outputs=[chatbot, msg, state],
|
| 435 |
+
queue=True # Important for streaming
|
| 436 |
).then(
|
| 437 |
self._update_discussion_status,
|
| 438 |
inputs=[state],
|