Spaces:
Runtime error
Runtime error
fix: Dont use dot
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from qdrant_client import QdrantClient
|
|
7 |
from fastembed import TextEmbedding
|
8 |
|
9 |
from llama_index.llms.openai import OpenAI
|
10 |
-
from
|
11 |
-
from
|
12 |
|
13 |
ocr = PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False)
|
14 |
llm = OpenAI(model="gpt-3.5-turbo")
|
|
|
7 |
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 main import RecommendationEngine
|
12 |
|
13 |
ocr = PaddleOCR(use_angle_cls=True, lang="en", use_gpu=False)
|
14 |
llm = OpenAI(model="gpt-3.5-turbo")
|
main.py
CHANGED
@@ -4,8 +4,8 @@ from qdrant_client import QdrantClient, models as qmodels
|
|
4 |
from llama_index.llms.openai import OpenAI
|
5 |
from fastembed import TextEmbedding
|
6 |
|
7 |
-
from
|
8 |
-
from
|
9 |
|
10 |
likes = ["dosa", "fanta", "croissant", "waffles"]
|
11 |
dislikes = ["virgin mojito"]
|
|
|
4 |
from llama_index.llms.openai import OpenAI
|
5 |
from fastembed import TextEmbedding
|
6 |
|
7 |
+
from models import FoodItem
|
8 |
+
from utils import synthesize_food_item
|
9 |
|
10 |
likes = ["dosa", "fanta", "croissant", "waffles"]
|
11 |
dislikes = ["virgin mojito"]
|
utils.py
CHANGED
@@ -2,7 +2,7 @@ from typing import List
|
|
2 |
from llama_index.program.openai import OpenAIPydanticProgram
|
3 |
from llama_index.core.llms.llm import LLM
|
4 |
|
5 |
-
from
|
6 |
|
7 |
|
8 |
def synthesize_food_item(food_name: str, llm: LLM) -> FoodItem:
|
|
|
2 |
from llama_index.program.openai import OpenAIPydanticProgram
|
3 |
from llama_index.core.llms.llm import LLM
|
4 |
|
5 |
+
from models import FoodItem, ExtractedFoodName
|
6 |
|
7 |
|
8 |
def synthesize_food_item(food_name: str, llm: LLM) -> FoodItem:
|