Spaces:
Sleeping
Sleeping
Commit
·
fdef76e
1
Parent(s):
a31073b
added few files
Browse files
src/data/__pycache__/dataset.cpython-313.pyc
ADDED
|
Binary file (492 Bytes). View file
|
|
|
src/data/__pycache__/request_method.cpython-313.pyc
ADDED
|
Binary file (516 Bytes). View file
|
|
|
src/data/dataset.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import pandas as pd
|
| 2 |
|
| 3 |
-
file_path = 'data/image.csv'
|
| 4 |
image_df = pd.read_csv(file_path)
|
| 5 |
def get_df(start_index,end_index):
|
| 6 |
final_column = image_df[['photo_id', 'photo_image_url']]
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
|
| 3 |
+
file_path = 'src/data/image.csv'
|
| 4 |
image_df = pd.read_csv(file_path)
|
| 5 |
def get_df(start_index,end_index):
|
| 6 |
final_column = image_df[['photo_id', 'photo_image_url']]
|
src/database/create_pinecone_index.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from pinecone import Pinecone, ServerlessSpec
|
| 2 |
from dotenv import load_dotenv
|
| 3 |
import time
|
| 4 |
-
import os
|
| 5 |
from transformers import AutoProcessor, CLIPModel
|
| 6 |
from data import dataset,request_method
|
| 7 |
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import sys
|
| 3 |
+
src_directory = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "src"))
|
| 4 |
+
sys.path.append(src_directory)
|
| 5 |
from pinecone import Pinecone, ServerlessSpec
|
| 6 |
from dotenv import load_dotenv
|
| 7 |
import time
|
|
|
|
| 8 |
from transformers import AutoProcessor, CLIPModel
|
| 9 |
from data import dataset,request_method
|
| 10 |
|