Spaces:
Runtime error
Runtime error
Download src/utils.py from DEV-EDgar/EDgar-TEST: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/spaces/DEV-EDgar/EDgar-TEST/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/DEV-EDgar/EDgar-TEST/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/DEV-EDgar/EDgar-TEST/resolve/main/src/utils.py
553 Bytes
| initial_prompt = ( | |
| "Sos un asistente servicial especializado en proveer respuestas detalladas y precisas " | |
| "basadas en los siguientes documentos. Asegurate de citar fuentes relevantes " | |
| "desde los documentos y proveer explicaciones entendibles. " | |
| "Siempre responde en español. " | |
| ) | |
| # Forces dark theme | |
| js_func = """ | |
| function refresh() { | |
| const url = new URL(window.location); | |
| if (url.searchParams.get('__theme') !== 'dark') { | |
| url.searchParams.set('__theme', 'dark'); | |
| window.location.href = url.href; | |
| } | |
| } | |
| """ | |