Spaces:
Sleeping
Sleeping
Download core/citations.py from GodsDevProject/FOIA_Doc_Search: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/spaces/GodsDevProject/FOIA_Doc_Search/resolve/main/core/citations.py
- Command line
-
hf download hf://spaces/GodsDevProject/FOIA_Doc_Search/core/citations.py
-
curl -L -o citations.py https://huggingface.co/spaces/GodsDevProject/FOIA_Doc_Search/resolve/main/core/citations.py
207 Bytes
| def citation_block(result: dict) -> str: | |
| return f"""--- | |
| Source: {result.get('source')} | |
| Title: {result.get('title','Unknown')} | |
| URL: {result.get('url')} | |
| Retrieved: {result.get('retrieved_at','N/A')} | |
| ---""" |