Download test_chatbot_functionality.py from arkapravac366/Eminem-Data-Entry: direct link, hf CLI and curl.
- Browser
- Download file 886 Bytes
-
https://huggingface.co/arkapravac366/Eminem-Data-Entry/resolve/main/test_chatbot_functionality.py
- Command line
-
hf download hf://arkapravac366/Eminem-Data-Entry/test_chatbot_functionality.py
-
curl -L -o test_chatbot_functionality.py https://huggingface.co/arkapravac366/Eminem-Data-Entry/resolve/main/test_chatbot_functionality.py
886 Bytes
| import sys | |
| import time | |
| from chatbot import ChatBot | |
| def test_chatbot(): | |
| print('Initializing chatbot...') | |
| bot = ChatBot() | |
| # Wait for model to load | |
| print('Waiting for model to initialize...') | |
| time.sleep(5) | |
| print('\nTesting basic response...') | |
| response = bot.get_response('How do I make a donation?') | |
| print(f'Response: {response}') | |
| print('\nTesting database query...') | |
| response = bot.get_response('What is the total donation amount?') | |
| print(f'Response: {response}') | |
| print('\nTesting pattern matching...') | |
| response = bot.get_response('What categories of donations are available?') | |
| print(f'Response: {response}') | |
| print('\nTesting context awareness...') | |
| response = bot.get_response('Yes, I would like to make a donation') | |
| print(f'Response: {response}') | |
| if __name__ == '__main__': | |
| test_chatbot() |