phanny commited on
Commit
56f9eec
·
1 Parent(s): 1f0f1af

fill in TODOs for demo

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. chatbot_development.ipynb +18 -10
  3. requirements.txt +106 -10
README.md CHANGED
@@ -125,7 +125,7 @@ To deploy your chatbot as a free web interface using Hugging Face Spaces:
125
  git init
126
  git add .
127
  git commit -m "Initial commit"
128
- git remote add origin https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
129
  git push -u origin main
130
  ```
131
 
 
125
  git init
126
  git add .
127
  git commit -m "Initial commit"
128
+ git remote add origin git remote add huggingface https://huggingface.co/spaces/phanny/6.C395-chatbot
129
  git push -u origin main
130
  ```
131
 
chatbot_development.ipynb CHANGED
@@ -69,7 +69,7 @@
69
  },
70
  {
71
  "cell_type": "code",
72
- "execution_count": 4,
73
  "metadata": {},
74
  "outputs": [
75
  {
@@ -78,19 +78,27 @@
78
  "text": [
79
  "\n",
80
  "Question: What options are available for someone in my situation?\n",
81
- "Response: I'd be happy to help you find suitable substance use and mental health treatment facilities in the Boston area. \n",
82
  "\n",
83
- "To provide you with the most accurate information, could you please provide me with some details about your situation? This will help me narrow down the options and provide you with the best fit for your needs. \n",
 
 
 
 
 
84
  "\n",
85
- "Please consider sharing the following information:\n",
86
  "\n",
87
- "1. What type of treatment are you looking for (inpatient, outpatient, intensive outpatient, or partial hospitalization)?\n",
88
- "2. Do you have a specific substance use disorder (e.g., opioid, alcohol, cocaine, etc.) or mental health condition (e.g., depression, anxiety, bipolar disorder, etc.)?\n",
89
- "3. Are you looking for treatment for yourself or a loved one?\n",
90
- "4. Do you have any specific insurance providers or are you seeking free or low-cost options?\n",
91
- "5. Are there any specific locations in the Boston area you prefer (e.g., Cambridge, Brookline, South Boston, etc.)?\n",
92
  "\n",
93
- "Once I have this information, I can provide you with a list of potential treatment facilities and programs in the Boston area that may be a good fit for you.\n"
 
 
 
 
 
 
 
94
  ]
95
  }
96
  ],
 
69
  },
70
  {
71
  "cell_type": "code",
72
+ "execution_count": 6,
73
  "metadata": {},
74
  "outputs": [
75
  {
 
78
  "text": [
79
  "\n",
80
  "Question: What options are available for someone in my situation?\n",
81
+ "Response: I'm here to help you find suitable treatment options in the Boston area. Before we proceed, could you please share more information about your situation, such as:\n",
82
  "\n",
83
+ "1. What type of substance(s) are you struggling with (e.g., opioids, alcohol, cocaine, etc.)?\n",
84
+ "2. Do you have a mental health condition that you'd like to address in conjunction with substance use treatment (e.g., depression, anxiety, PTSD, etc.)?\n",
85
+ "3. Are you looking for inpatient, outpatient, or intensive outpatient (IOP) treatment?\n",
86
+ "4. Are you insured, and if so, what type of insurance do you have?\n",
87
+ "5. Are you looking for a specific age range or demographic (e.g., young adults, older adults, family therapy, etc.)?\n",
88
+ "6. Are there any specific treatment approaches or modalities you're interested in (e.g., medication-assisted treatment, cognitive-behavioral therapy, etc.)?\n",
89
  "\n",
90
+ "The more information you provide, the better I can tailor my recommendations to suit your needs. \n",
91
  "\n",
92
+ "Here are some Boston area treatment facilities that may be a good starting point:\n",
 
 
 
 
93
  "\n",
94
+ "1. Boston Medical Center's (BMC) Gosnold: Offers comprehensive substance use and mental health services, including inpatient and outpatient programs.\n",
95
+ "2. Caritas HealthCare: Provides a range of services, including medication-assisted treatment, counseling, and case management.\n",
96
+ "3. McLean Hospital: A leading mental health facility that offers a range of inpatient and outpatient services, including substance use treatment.\n",
97
+ "4. The Center for Psychiatric Rehabilitation (CPR): Offers a comprehensive range of services, including substance use treatment, counseling, and vocational support.\n",
98
+ "5. Horizon House: Provides a range of services, including inpatient and outpatient substance use treatment, as well as mental health services.\n",
99
+ "6. New England Baptist Hospital's (NEBH) Behavioral Health Services: Offers a range of services, including inpatient and outpatient substance use treatment.\n",
100
+ "\n",
101
+ "Please let me know if you have any specific questions or concerns, or if there's anything else I can do to assist you in finding the right treatment facility for your needs.\n"
102
  ]
103
  }
104
  ],
requirements.txt CHANGED
@@ -1,10 +1,106 @@
1
- torch>=2.1.0
2
- transformers>=4.34.0
3
- datasets>=2.14.0
4
- accelerate>=0.24.0
5
- sentencepiece>=0.1.99
6
- gradio>=3.50.0
7
- huggingface-hub>=0.19.0
8
- numpy<2.0.0
9
- ipywidgets>=8.0.0
10
- python-dotenv>=1.1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ accelerate==1.13.0
2
+ aiofiles==24.1.0
3
+ aiohappyeyeballs==2.6.1
4
+ aiohttp==3.13.3
5
+ aiosignal==1.4.0
6
+ annotated-doc==0.0.4
7
+ annotated-types==0.7.0
8
+ anyio==4.12.1
9
+ appnope==0.1.4
10
+ asttokens==3.0.1
11
+ attrs==25.4.0
12
+ brotli==1.2.0
13
+ certifi==2026.2.25
14
+ charset-normalizer==3.4.5
15
+ click==8.3.1
16
+ comm==0.2.3
17
+ datasets==4.6.1
18
+ debugpy==1.8.20
19
+ decorator==5.2.1
20
+ dill==0.4.0
21
+ executing==2.2.1
22
+ fastapi==0.135.1
23
+ ffmpy==1.0.0
24
+ filelock==3.25.0
25
+ frozenlist==1.8.0
26
+ fsspec==2026.2.0
27
+ gradio==6.9.0
28
+ gradio_client==2.3.0
29
+ groovy==0.1.2
30
+ h11==0.16.0
31
+ hf-xet==1.3.2
32
+ httpcore==1.0.9
33
+ httpx==0.28.1
34
+ huggingface_hub==1.6.0
35
+ idna==3.11
36
+ ipykernel==7.2.0
37
+ ipython==9.11.0
38
+ ipython_pygments_lexers==1.1.1
39
+ ipywidgets==8.1.8
40
+ jedi==0.19.2
41
+ Jinja2==3.1.6
42
+ jupyter_client==8.8.0
43
+ jupyter_core==5.9.1
44
+ jupyterlab_widgets==3.0.16
45
+ markdown-it-py==4.0.0
46
+ MarkupSafe==3.0.3
47
+ matplotlib-inline==0.2.1
48
+ mdurl==0.1.2
49
+ mpmath==1.3.0
50
+ multidict==6.7.1
51
+ multiprocess==0.70.18
52
+ nest-asyncio==1.6.0
53
+ networkx==3.6.1
54
+ numpy==1.26.4
55
+ orjson==3.11.7
56
+ packaging==26.0
57
+ pandas==3.0.1
58
+ parso==0.8.6
59
+ pexpect==4.9.0
60
+ pillow==12.1.1
61
+ platformdirs==4.9.4
62
+ prompt_toolkit==3.0.52
63
+ propcache==0.4.1
64
+ psutil==7.2.2
65
+ ptyprocess==0.7.0
66
+ pure_eval==0.2.3
67
+ pyarrow==23.0.1
68
+ pydantic==2.12.5
69
+ pydantic_core==2.41.5
70
+ pydub==0.25.1
71
+ Pygments==2.19.2
72
+ python-dateutil==2.9.0.post0
73
+ python-dotenv==1.2.2
74
+ python-multipart==0.0.22
75
+ pytz==2026.1.post1
76
+ PyYAML==6.0.3
77
+ pyzmq==27.1.0
78
+ regex==2026.2.28
79
+ requests==2.32.5
80
+ rich==14.3.3
81
+ safehttpx==0.1.7
82
+ safetensors==0.7.0
83
+ semantic-version==2.10.0
84
+ sentencepiece==0.2.1
85
+ setuptools==82.0.0
86
+ shellingham==1.5.4
87
+ six==1.17.0
88
+ stack-data==0.6.3
89
+ starlette==0.52.1
90
+ sympy==1.14.0
91
+ tokenizers==0.22.2
92
+ tomlkit==0.13.3
93
+ torch==2.10.0
94
+ tornado==6.5.4
95
+ tqdm==4.67.3
96
+ traitlets==5.14.3
97
+ transformers==5.3.0
98
+ typer==0.24.1
99
+ typing-inspection==0.4.2
100
+ typing_extensions==4.15.0
101
+ urllib3==2.6.3
102
+ uvicorn==0.41.0
103
+ wcwidth==0.6.0
104
+ widgetsnbextension==4.0.15
105
+ xxhash==3.6.0
106
+ yarl==1.23.0