Spaces:
Build error
Build error
Download test_application.py from jskinner215/TAPASxHF2: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/spaces/jskinner215/TAPASxHF2/resolve/main/test_application.py
- Command line
-
hf download hf://spaces/jskinner215/TAPASxHF2/test_application.py
-
curl -L -o test_application.py https://huggingface.co/spaces/jskinner215/TAPASxHF2/resolve/main/test_application.py
323 Bytes
| from application import Application | |
| def test_application(): | |
| app = Application() | |
| # Test uploading CSV file | |
| app.upload_csv("test.csv") | |
| assert app.csv_loader.loaded_files == ["test.csv"] | |
| # Test asking question | |
| answer = app.ask_question("What is the sum?") | |
| assert isinstance(answer, str) | |