Spaces:
Sleeping
Sleeping
Download test_chat.py from ShadyAtef/mnky-chatbot-api: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/ShadyAtef/mnky-chatbot-api/resolve/main/test_chat.py
- Command line
-
hf download hf://spaces/ShadyAtef/mnky-chatbot-api/test_chat.py
-
curl -L -o test_chat.py https://huggingface.co/spaces/ShadyAtef/mnky-chatbot-api/resolve/main/test_chat.py
638 Bytes
| import requests | |
| URL = "http://localhost:7860/chat" | |
| TESTS = [ | |
| "can u build me a website", | |
| "idk what i need but i want ai in my business", | |
| "how much rn?", | |
| "can u make mvp asap?", | |
| "do u guys do automations?", | |
| "what does mnkylabs do?", | |
| "can you build an ai bot for my website?", | |
| "show me client revenue results", | |
| "what tech stack do you guarantee?", | |
| ] | |
| for question in TESTS: | |
| response = requests.post(URL, json={"message": question}, timeout=60) | |
| print("Q:", question) | |
| print("A:", response.json()["answer"]) | |
| print("Services:", response.json()["recommendedServices"]) | |
| print("-" * 80) | |