Spaces:
Sleeping
Sleeping
Commit ·
acc179d
1
Parent(s): 2445440
updated
Browse files8 unmodified lines9101112131464 unmodified lines7980818283848 unmodified linesimport shutilimport torch# Initialize modelschat_groq_api = os.getenv("GROQ_API_KEY")64 unmodified lineswhisper_model = WhisperModel(model_name if 'model_name' in locals() else "tiny", device="cpu", compute_type="int8")return whisper_modeldef generate_first_question(profile, job):"""Generate the first interview question based on profile and job"""try:8 unmodified lines91011121314151617181920212264 unmodified lines87888990919293948 unmodified linesimport shutilimport torchif torch.cuda.is_available():print("🔥 CUDA Available")print(torch.cuda.get_device_name(0))print("cuDNN version:", torch.backends.cudnn.version())else:print("❌ CUDA Not Available")# Initialize modelschat_groq_api = os.getenv("GROQ_API_KEY")64 unmodified lineswhisper_model = WhisperModel(model_name if 'model_name' in locals() else "tiny", device="cpu", compute_type="int8")return whisper_modelload_whisper_model()def generate_first_question(profile, job):"""Generate the first interview question based on profile and job"""try:
backend/services/interview_engine.py+10