Spaces:
Runtime error
Runtime error
Download tests/test_analytics_chatbot.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/8ce97f00a97cdf0dec558383be5980363b55829b/tests/test_analytics_chatbot.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions@8ce97f00a97cdf0dec558383be5980363b55829b/tests/test_analytics_chatbot.py
-
curl -L -o test_analytics_chatbot.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/8ce97f00a97cdf0dec558383be5980363b55829b/tests/test_analytics_chatbot.py
303 Bytes
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| client = TestClient(app) | |
| def test_context_analysis(): | |
| message = "I want to see the sentiment distribution of divya dhakal." | |
| response = client.get("/api/analytics-chatbot",params=message) | |
| assert response.status_code == 200 |