mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Arrange modules in standardized ordering
This commit is contained in:
parent
569e30b1c8
commit
a3a1100be9
3 changed files with 22 additions and 8 deletions
13
src/main.py
13
src/main.py
|
@ -1,11 +1,18 @@
|
|||
# Standard Packages
|
||||
import sys
|
||||
import argparse
|
||||
import pathlib
|
||||
from typing import Optional
|
||||
|
||||
# External Packages
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
||||
# Internal Packages
|
||||
from search_type import asymmetric
|
||||
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
||||
from utils.helpers import is_none_or_empty
|
||||
import argparse
|
||||
import pathlib
|
||||
import uvicorn
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
# Import Modules
|
||||
from processor.org_mode import orgnode
|
||||
from utils.helpers import get_absolute_path, is_none_or_empty
|
||||
# Standard Packages
|
||||
import json
|
||||
import argparse
|
||||
import pathlib
|
||||
import glob
|
||||
import gzip
|
||||
|
||||
# Internal Packages
|
||||
from processor.org_mode import orgnode
|
||||
from utils.helpers import get_absolute_path, is_none_or_empty
|
||||
|
||||
|
||||
# Define Functions
|
||||
def org_to_jsonl(org_files, org_file_filter, output_file, verbose=0):
|
||||
|
|
|
@ -1,15 +1,20 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# Standard Packages
|
||||
import json
|
||||
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
||||
import time
|
||||
import gzip
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import torch
|
||||
import argparse
|
||||
import pathlib
|
||||
|
||||
# External Packages
|
||||
import torch
|
||||
from sentence_transformers import SentenceTransformer, CrossEncoder, util
|
||||
|
||||
# Internal Packages
|
||||
from utils.helpers import get_absolute_path
|
||||
from processor.org_mode.org_to_jsonl import org_to_jsonl
|
||||
|
||||
|
|
Loading…
Reference in a new issue