Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +3 -3
custom_utils.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
import os
|
2 |
import pandas as pd
|
3 |
-
|
4 |
from document_model import SearchResultItem
|
|
|
5 |
from pymongo.collection import Collection
|
6 |
from pymongo.errors import OperationFailure
|
7 |
from pymongo.operations import SearchIndexModel
|
8 |
from pymongo.mongo_client import MongoClient
|
9 |
-
import time
|
10 |
|
11 |
DB_NAME = "airbnb_dataset"
|
12 |
COLLECTION_NAME = "listings_reviews"
|
|
|
1 |
+
import openai, os, time
|
2 |
import pandas as pd
|
3 |
+
|
4 |
from document_model import SearchResultItem
|
5 |
+
from pydantic import ValidationError
|
6 |
from pymongo.collection import Collection
|
7 |
from pymongo.errors import OperationFailure
|
8 |
from pymongo.operations import SearchIndexModel
|
9 |
from pymongo.mongo_client import MongoClient
|
|
|
10 |
|
11 |
DB_NAME = "airbnb_dataset"
|
12 |
COLLECTION_NAME = "listings_reviews"
|