This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |