Spaces:
Running
Running
Update api/ingredients_analysis.py
Browse files
api/ingredients_analysis.py
CHANGED
@@ -10,6 +10,9 @@ from pydantic import BaseModel
|
|
10 |
from openai import OpenAI
|
11 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
12 |
import asyncio
|
|
|
|
|
|
|
13 |
|
14 |
# Load the pre-trained model
|
15 |
model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|
|
|
10 |
from openai import OpenAI
|
11 |
from concurrent.futures import ThreadPoolExecutor, as_completed
|
12 |
import asyncio
|
13 |
+
from fastapi import FastAPI
|
14 |
+
|
15 |
+
app = FastAPI()
|
16 |
|
17 |
# Load the pre-trained model
|
18 |
model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2')
|