| | --- |
| | title: ExampleChatBot |
| | emoji: 🫂 |
| | colorFrom: green |
| | colorTo: blue |
| | sdk: gradio |
| | sdk_version: 3.20.1 |
| | app_file: chatbot.py |
| | pinned: false |
| | --- |
| | |
| | # Chatbot for Psychological Assessment |
| |
|
| | This is an example chatbot that uses Gradio and the OpenAI GPT-3-Turbo API that can be used to assess psychology, as part of tutorial project made by the Attachment and Close Relationships Lab at the University of Illinois at Urbana-Champaign. |
| |
|
| | To run the chatbot, follow these steps: |
| |
|
| | Clone this repository to your local machine. |
| | Install the required dependencies using pip install -r requirements.txt. |
| | If you don't already have an OpenAI API key, create one and set it as an environment variable called OPENAI_API_KEY. |
| | Run python chatbot.py to start the chatbot. |
| | Select the type of input you'd like to use (text or audio) and enter or speak your message to the chatbot. |
| | The chatbot can be modified to assess whatever is your target interest. |
| | Note that this chatbot is not intended to provide professional advice or diagnosis, and is for research purposes only. |
| |
|
| | If you have any issues or questions, please reach out to the Attachment and Close Relationships Lab at the University of Illinois at Urbana-Champaign. |
| |
|
| | Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |