Spaces:
Paused
Paused
Download utils/ui.py from IliaLarchenko/interviewer: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/IliaLarchenko/interviewer/resolve/refs%2Fpr%2F2/utils/ui.py
- Command line
-
hf download hf://spaces/IliaLarchenko/interviewer@refs/pr/2/utils/ui.py
-
curl -L -o ui.py https://huggingface.co/spaces/IliaLarchenko/interviewer/resolve/refs%2Fpr%2F2/utils/ui.py
437 Bytes
| def add_interviewer_message(message): | |
| def f(chat, skip=False): | |
| if not skip: | |
| chat.append((None, message)) | |
| return chat | |
| return f | |
| def add_candidate_message(message, chat): | |
| if message and len(message) > 0: | |
| chat.append((message, None)) | |
| return chat | |
| def get_status_color(obj): | |
| if obj.status: | |
| if obj.streaming: | |
| return "🟢" | |
| return "🟡" | |
| return "🔴" | |