refactor: use relative import

This commit is contained in:
arkohut 2024-07-04 00:28:45 +08:00
parent 9e5c7d71c8
commit 0b03b2c860
3 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@ from typing import List
import httpx import httpx
import typer import typer
from memos.server import run_server from .server import run_server
from tabulate import tabulate from tabulate import tabulate
from tqdm import tqdm from tqdm import tqdm
from magika import Magika from magika import Magika

View File

@ -1,5 +1,5 @@
import typesense import typesense
from memos.config import settings from .config import settings
# Initialize Typesense client # Initialize Typesense client
client = typesense.Client( client = typesense.Client(

View File

@ -14,11 +14,10 @@ from pathlib import Path
import asyncio import asyncio
import typesense import typesense
from memos.config import settings
from .config import get_database_path from .config import get_database_path, settings
import memos.crud as crud from . import crud
import memos.indexing as indexing from . import indexing
from .schemas import ( from .schemas import (
Library, Library,
Folder, Folder,