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
File size: 1,028 Bytes
7ad2e16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # 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 |