Instructions to use renziify/1.PsychologyTest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use renziify/1.PsychologyTest with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("<base-model-id>") model.load_adapter("renziify/1.PsychologyTest", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download interview_utils.py from renziify/1.PsychologyTest: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/renziify/1.PsychologyTest/resolve/refs%2Fpr%2F2/interview_utils.py
- Command line
-
hf download hf://renziify/1.PsychologyTest@refs/pr/2/interview_utils.py
-
curl -L -o interview_utils.py https://huggingface.co/renziify/1.PsychologyTest/resolve/refs%2Fpr%2F2/interview_utils.py
1.03 kB
| # interview_utils.py | |
| import random | |
| from prompt_instructions import get_interview_initial_message_sarah, get_interview_initial_message_aaron, get_interview_prompt_sarah, get_interview_prompt_aaron | |
| from ai_config import n_of_questions | |
| def random_interviewer(language): | |
| if random.choice([True, False]): | |
| initial_message, interviewer_name = get_interview_initial_message_sarah() | |
| get_interview_prompt = get_interview_prompt_sarah(language, n_of_questions) | |
| voice = 'alloy' | |
| else: | |
| initial_message, interviewer_name = get_interview_initial_message_aaron() | |
| get_interview_prompt = get_interview_prompt_aaron(language, n_of_questions) | |
| voice = 'onyx' | |
| return initial_message, interviewer_name, get_interview_prompt, voice | |
| def get_prompt(): | |
| # This function should return the actual prompt | |
| # You might need to adjust this based on how you're storing the prompt | |
| return get_interview_prompt_sarah(language, n_of_questions) # or whatever is appropriate |