Download extensions/superboogav2/utils.py from W404NET/My-Chat: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/W404NET/My-Chat/resolve/main/extensions/superboogav2/utils.py
- Command line
-
hf download hf://spaces/W404NET/My-Chat/extensions/superboogav2/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/W404NET/My-Chat/resolve/main/extensions/superboogav2/utils.py
500 Bytes
| """ | |
| This module contains common functions across multiple other modules. | |
| """ | |
| import extensions.superboogav2.parameters as parameters | |
| # Create the context using the prefix + data_separator + postfix from parameters. | |
| def create_context_text(results): | |
| context = parameters.get_prefix() + parameters.get_data_separator().join(results) + parameters.get_postfix() | |
| return context | |
| # Create metadata with the specified source | |
| def create_metadata_source(source: str): | |
| return {'source': source} |