Spaces:
Runtime error
Runtime error
feat: Use Qdrant local mode
Browse files- app.py +2 -2
- main.py β engine.py +0 -0
app.py
CHANGED
@@ -8,11 +8,11 @@ from fastembed import TextEmbedding
|
|
8 |
|
9 |
from llama_index.llms.openai import OpenAI
|
10 |
from utils import extract_food_items, synthesize_food_item
|
11 |
-
from
|
12 |
|
13 |
ocr = PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False)
|
14 |
llm = OpenAI(model="gpt-3.5-turbo")
|
15 |
-
rec_engine = RecommendationEngine("food", QdrantClient("
|
16 |
|
17 |
|
18 |
def run_ocr(img_path) -> str:
|
|
|
8 |
|
9 |
from llama_index.llms.openai import OpenAI
|
10 |
from utils import extract_food_items, synthesize_food_item
|
11 |
+
from engine import RecommendationEngine
|
12 |
|
13 |
ocr = PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False)
|
14 |
llm = OpenAI(model="gpt-3.5-turbo")
|
15 |
+
rec_engine = RecommendationEngine("food", QdrantClient("qdrant-rec-sys-data"), TextEmbedding())
|
16 |
|
17 |
|
18 |
def run_ocr(img_path) -> str:
|
main.py β engine.py
RENAMED
File without changes
|