Spaces:
Sleeping
Sleeping
Download main.py from UltimateRepAIr/RepAIr: direct link, hf CLI and curl.
- Browser
- Download file 600 Bytes
-
https://huggingface.co/spaces/UltimateRepAIr/RepAIr/resolve/main/main.py
- Command line
-
hf download hf://spaces/UltimateRepAIr/RepAIr/main.py
-
curl -L -o main.py https://huggingface.co/spaces/UltimateRepAIr/RepAIr/resolve/main/main.py
600 Bytes
| #%% | |
| # import checkpoint message | |
| from helper_functions.checkpoint import checkpoint | |
| # get interface design | |
| from ui.interface_design import interface_init | |
| from langchain_huggingface import HuggingFaceEmbeddings | |
| import helper_functions.load_embed_model | |
| def main(): | |
| helper_functions.load_embed_model.embedding_model = HuggingFaceEmbeddings( | |
| model_name='sentence-transformers/all-MiniLM-L6-v2' | |
| ) | |
| interface_init() | |
| if __name__ == "__main__": | |
| main() | |
| checkpoint(__file__) | |
| # %% | |