Vrushali commited on
Commit
26494d9
·
1 Parent(s): bf2641c

Add config file and requirements.txt

Browse files
src/config.py CHANGED
@@ -3,3 +3,5 @@ import os
3
 
4
  OPENAI_API_KEY = config('OPENAI_API_KEY', default="")
5
  emmbedding_model = "text-embedding-3-large"
 
 
 
3
 
4
  OPENAI_API_KEY = config('OPENAI_API_KEY', default="")
5
  emmbedding_model = "text-embedding-3-large"
6
+
7
+ file_Directory= os.path.join(os.getcwd(), "data")
src/module/config.py DELETED
@@ -1,6 +0,0 @@
1
- from decouple import config
2
- import os
3
-
4
- OPENAI_API_KEY = config('OPENAI_API_KEY')
5
-
6
- file_Directory= os.path.join(os.getcwd(), "data")
 
 
 
 
 
 
 
src/module/image.ipynb CHANGED
@@ -2,20 +2,9 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": null,
6
  "metadata": {},
7
- "outputs": [
8
- {
9
- "ename": "",
10
- "evalue": "",
11
- "output_type": "error",
12
- "traceback": [
13
- "\u001b[1;31mRunning cells with 'catlog' requires the ipykernel package.\n",
14
- "\u001b[1;31mRun the following command to install 'ipykernel' into the Python environment. \n",
15
- "\u001b[1;31mCommand: 'conda install -n catlog ipykernel --update-deps --force-reinstall'"
16
- ]
17
- }
18
- ],
19
  "source": [
20
  "import cv2\n",
21
  "import os\n",
@@ -38,8 +27,16 @@
38
  "name": "python3"
39
  },
40
  "language_info": {
 
 
 
 
 
 
41
  "name": "python",
42
- "version": "3.10.0"
 
 
43
  }
44
  },
45
  "nbformat": 4,
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "metadata": {},
7
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
8
  "source": [
9
  "import cv2\n",
10
  "import os\n",
 
27
  "name": "python3"
28
  },
29
  "language_info": {
30
+ "codemirror_mode": {
31
+ "name": "ipython",
32
+ "version": 3
33
+ },
34
+ "file_extension": ".py",
35
+ "mimetype": "text/x-python",
36
  "name": "python",
37
+ "nbconvert_exporter": "python",
38
+ "pygments_lexer": "ipython3",
39
+ "version": "3.10.13"
40
  }
41
  },
42
  "nbformat": 4,
src/module/prompts/base.py CHANGED
@@ -11,7 +11,7 @@ base_prompt = dedent("""
11
  this is the categorys list ['BEVERAGES', 'SNACKS & BRANDED FOODS', 'NOT FOUND', 'EGGS, MEAT & FISH', 'FOODGRAINS, OIL & MASALA', 'PERSONAL CARE', 'CLEANING & HOUSEHOLD', 'FRUITS & VEGETABLES', 'BAKERY, CAKES & DAIRY', 'MAKEUP', 'BABY CARE', 'PET FOOD & ACCESSORIES', 'NON FMCG', 'ALCOHOL & TOBACCO', 'WELLNESS', 'EVERYDAY MEDICINE-NEW', 'EXCERCISE & FITNESS', 'ALCOHOLIC BEVERAGES'].
12
 
13
  Analyse data from the above product description to give me the following details in JSON format:
14
- ( return "NOT FOUND" where you don't have a answer)
15
  {{
16
  "brand": "sample_brand",
17
  "mrp": "The price might start with MRP or Rs.",
 
11
  this is the categorys list ['BEVERAGES', 'SNACKS & BRANDED FOODS', 'NOT FOUND', 'EGGS, MEAT & FISH', 'FOODGRAINS, OIL & MASALA', 'PERSONAL CARE', 'CLEANING & HOUSEHOLD', 'FRUITS & VEGETABLES', 'BAKERY, CAKES & DAIRY', 'MAKEUP', 'BABY CARE', 'PET FOOD & ACCESSORIES', 'NON FMCG', 'ALCOHOL & TOBACCO', 'WELLNESS', 'EVERYDAY MEDICINE-NEW', 'EXCERCISE & FITNESS', 'ALCOHOLIC BEVERAGES'].
12
 
13
  Analyse data from the above product description to give me the following details in JSON format:
14
+ ( return "null" where you don't have a answer)
15
  {{
16
  "brand": "sample_brand",
17
  "mrp": "The price might start with MRP or Rs.",
requirements.txt → src/requirements.txt RENAMED
File without changes