Spaces:
Runtime error
Runtime error
Download tests/test_ideation.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/tests/test_ideation.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions/tests/test_ideation.py
-
curl -L -o test_ideation.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/tests/test_ideation.py
656 Bytes
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| client = TestClient(app) | |
| def test_ideation(): | |
| payload = { | |
| "scores": { | |
| "originality": 0.8, | |
| "fluecy": 0.6, | |
| "flexibility": 0.7, | |
| "feasibility": 0.9, | |
| "practical_value": 0.75, | |
| "surprise_factor": 0.4, | |
| "combinatorial_novelty": 0.65, | |
| "scalabality": 0.85, | |
| "cultural_freshness": 0.55, | |
| "alignment_with_business_details": 0.95 | |
| } | |
| } | |
| response = client.post("/api/ideation", json=payload) | |
| print(response.json()) | |
| assert response.status_code == 200 | |