Spaces:
Sleeping
Sleeping
alpcansoydas
commited on
Commit
•
bd8d834
1
Parent(s):
9e59663
Update app.py
Browse files
app.py
CHANGED
@@ -14,35 +14,105 @@ llm = HuggingFaceEndpoint(
|
|
14 |
)
|
15 |
|
16 |
# Provide the family labels directly in the prompt
|
17 |
-
family_labels = [
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
# Modify the prompt to focus on selecting a UNSPSC family label from the given list
|
48 |
template_classify = '''
|
|
|
14 |
)
|
15 |
|
16 |
# Provide the family labels directly in the prompt
|
17 |
+
family_labels = ['Containers and storage'
|
18 |
+
'Components for information technology or broadcasting or telecommunications'
|
19 |
+
'Industrial process machinery and equipment and supplies' 'Clothing'
|
20 |
+
'Computer Equipment and Accessories'
|
21 |
+
'Data Voice or Multimedia Network Equipment or Platforms and Accessories'
|
22 |
+
'Software' 'Communications Devices and Accessories' 'Timepieces'
|
23 |
+
'Transport services' 'Measuring and observing and testing instruments'
|
24 |
+
'Heating and ventilation and air circulation' 'Power sources'
|
25 |
+
'Structural components and basic shapes'
|
26 |
+
'Electronic hardware and component parts and accessories'
|
27 |
+
'Insurance and retirement services'
|
28 |
+
'Electrical wire and cable and harness'
|
29 |
+
'Electrical equipment and components and supplies' 'Hand tools'
|
30 |
+
'Resins and rosins and other resin derived materials'
|
31 |
+
'Part cleaning machinery and accessories'
|
32 |
+
'Heavy construction machinery and equipment' 'Power generation'
|
33 |
+
'Pneumatic machinery and equipment' 'Vehicle bodies and trailers'
|
34 |
+
'Workplace safety equipment and supplies and training materials'
|
35 |
+
'Public safety and control' 'Motor vehicles'
|
36 |
+
'Batteries and generators and kinetic power transmission'
|
37 |
+
'Domestic appliances' 'Lamps and lightbulbs and lamp components'
|
38 |
+
'Automotive specialty tools' 'Vocational training'
|
39 |
+
'Electrical wire management devices and accessories and supplies'
|
40 |
+
'Lighting Fixtures and Accessories'
|
41 |
+
'Automation control devices and components and accessories'
|
42 |
+
'Fluid and gas distribution' 'Industrial filtering and purification'
|
43 |
+
'Printed circuits and integrated circuits and microassemblies'
|
44 |
+
'Portable Structure Building Components'
|
45 |
+
'Security surveillance and detection' 'Structural building products'
|
46 |
+
'Work related organizations' 'Management advisory services'
|
47 |
+
'Civic organizations and associations and movements' 'Printed media'
|
48 |
+
'Clubs' 'Industrial pumps and compressors' 'Elements and gases'
|
49 |
+
'Office machines and their supplies and accessories'
|
50 |
+
'Consumer electronics'
|
51 |
+
'Audio and visual presentation and composing equipment'
|
52 |
+
'Photographic or filming or video equipment'
|
53 |
+
'Printing and publishing equipment' 'Rubber and elastomers'
|
54 |
+
'Compounds and mixtures' 'Paper products'
|
55 |
+
'Laboratory and scientific equipment'
|
56 |
+
'Building and facility maintenance and repair services'
|
57 |
+
'Nonresidential building construction services'
|
58 |
+
'Specialized trade construction and maintenance services'
|
59 |
+
'Heavy construction services' 'Insurable interest contracts'
|
60 |
+
'Computer services' 'Information Technology Service Delivery'
|
61 |
+
'Real estate services' 'Seasonings and preservatives' 'Legal services'
|
62 |
+
'Business administration services' 'General agreements and contracts'
|
63 |
+
'Law enforcement' 'Prepared and preserved foods'
|
64 |
+
'Office and desk accessories' 'Office supply'
|
65 |
+
'Security and personal safety' 'Commercial and industrial furniture'
|
66 |
+
'Fuels' 'Passenger transport' 'Mail and cargo transport'
|
67 |
+
'Medical facility products' 'Paper materials' 'Beverages'
|
68 |
+
'Cleaning and janitorial supplies' 'Janitorial equipment'
|
69 |
+
'Marketing and distribution' 'Vending machines'
|
70 |
+
'Monetary instruments or currency'
|
71 |
+
'Institutional food services equipment' 'Comprehensive health services'
|
72 |
+
'Human resources services' 'Bank offered products' 'Advertising'
|
73 |
+
'Signage and accessories' 'Fabrics and leather materials'
|
74 |
+
'Luggage and handbags and packs and cases' 'Jewelry'
|
75 |
+
'Chocolate and sugars and sweeteners and confectionary products'
|
76 |
+
'Merchandising furniture and accessories' 'Bread and bakery products'
|
77 |
+
'Photographic services' 'Manufacturing support services'
|
78 |
+
'Electronic reference material' 'Banking and investment'
|
79 |
+
'Professional service robot' 'Material packing and handling'
|
80 |
+
'Transportation components and systems'
|
81 |
+
'Professional engineering services' 'Alternative educational systems'
|
82 |
+
'Specialized educational services' 'Restaurants and catering'
|
83 |
+
'Travel facilitation' 'Hotels and lodging and meeting facilities'
|
84 |
+
'Public relations and professional communications services'
|
85 |
+
'Independent living aids for the physically challenged'
|
86 |
+
'Structural materials' 'Material handling machinery and equipment'
|
87 |
+
'Marine construction and installation equipment'
|
88 |
+
'Construction and maintenance support equipment'
|
89 |
+
'Electronic manufacturing machinery and equipment and accessories'
|
90 |
+
'Concrete and cement and plaster' 'Roads and landscape'
|
91 |
+
'Administrative interventions or procedures, physiological systems and anatomical regions, introduction and irrigation and circulatory'
|
92 |
+
'Fire protection' 'Passive discrete components' 'Footwear'
|
93 |
+
'Public order and safety' 'Industrial use papers'
|
94 |
+
'Electron tube devices and accessories'
|
95 |
+
'Transportation services equipment' 'Machine made parts'
|
96 |
+
'Accounting and bookkeeping services' 'Commercial sports'
|
97 |
+
'Performing arts' 'Governmental property right conferrals'
|
98 |
+
'Non edible plant and forestry products' 'Doors and windows and glass'
|
99 |
+
'Rope and chain and cable and wire and strap'
|
100 |
+
'Machinery and transport equipment manufacture'
|
101 |
+
'Castings and casting assemblies'
|
102 |
+
'Industrial food and beverage equipment' 'Earth and stone' 'Alloys'
|
103 |
+
'Hardware' 'Housings and cabinets and casings'
|
104 |
+
'Residential building construction services'
|
105 |
+
'Discrete semiconductor devices' 'Packings glands boots and covers'
|
106 |
+
'Wire machinery and equipment' 'Entertainment services'
|
107 |
+
'Explosive materials' 'Industrial optics'
|
108 |
+
'Diagnostic and microbiological devices' 'Trade policy and services'
|
109 |
+
'Machined castings' 'Decorative adornments'
|
110 |
+
'Medical diagnostic imaging and nuclear medicine products'
|
111 |
+
'Graphic design' 'Dairy products and eggs'
|
112 |
+
'Film and theater production support services'
|
113 |
+
'Metal and mineral industries'
|
114 |
+
'Welding and soldering and brazing machinery and accessories and supplies'
|
115 |
+
'Packaging materials' 'Machined raw stock']
|
116 |
|
117 |
# Modify the prompt to focus on selecting a UNSPSC family label from the given list
|
118 |
template_classify = '''
|