Skip to content

Instantly share code, notes, and snippets.

View Apoorvgarg-creator's full-sized avatar
:octocat:
Focusing

Apoorv Garg Apoorvgarg-creator

:octocat:
Focusing
View GitHub Profile
@Apoorvgarg-creator
Apoorvgarg-creator / UploadCM.py
Created November 7, 2021 11:18
This script uploads all the Images to the cloud server "Cloudinary", and add the cloudinary link to the MongoDB server with other properties for fast extraction
import os
import requests
import base64
import json
url_upload = "https://blitz-db-service.herokuapp.com/upload"
url_add_products = "https://blitz-db-service.herokuapp.com/product"
dataset_path = "/Users/apoorvgarg/Downloads/Myntra-HackerRamp"
dataset_images = os.path.join(dataset_path,"/images")
for folder_name in os.listdir(dataset_images):
@Apoorvgarg-creator
Apoorvgarg-creator / Fashion_Consultant.py
Last active November 7, 2021 18:18
frequency based recommender system
import os
import requests
import base64
import json
csv_file = "Tags_to_Tags.csv"
url_add = "https://blitz-db-service.herokuapp.com/add"
with open(csv_file,"r") as file1:
fl = file1.read()