Download Chat loop from Kashmore84/4dptver01: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/Kashmore84/4dptver01/resolve/main/Chat%20loop
- Command line
-
hf download 'hf://Kashmore84/4dptver01/Chat loop'
-
curl -L -o 'Chat loop' https://huggingface.co/Kashmore84/4dptver01/resolve/main/Chat%20loop
144 Bytes
| while True: | |
| user_input = input("User: ") | |
| if user_input.lower() == "quit": | |
| break | |
| response = chat(user_input) | |
| print("Bot:", response) | |