Update app.py
Browse files
app.py
CHANGED
@@ -30,18 +30,25 @@ For example:
|
|
30 |
txt_display_1 = 'content of the letter: '
|
31 |
|
32 |
|
33 |
-
txt_prompt_2 = """
|
34 |
-
It is for use of reorder, that is, when quantity level is below ROQ, a reorder process will need to take place. Please provide a list of reorder items for all below ROQ. When responding please follow the below formats:
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
Item ID, Shortage (Quantity - ROQ), Contact Phone
|
38 |
-
(for all below ROQ items)
|
39 |
|
40 |
For example:
|
41 |
-
|
|
|
42 |
#11608, 70 (30-100), 1-858-7331029
|
43 |
#61785, 5 (5-10), 1-858-1233
|
44 |
|
|
|
|
|
45 |
"""
|
46 |
txt_display_2 = '--- '
|
47 |
|
|
|
30 |
txt_display_1 = 'content of the letter: '
|
31 |
|
32 |
|
33 |
+
txt_prompt_2 = """First, to determine if the image is related to inventory and contains necessary information, consider the base reference of "a valid inventory table should be a table format with columns for Item ID, Quantity, ROQ (Replenishment Order Quantity), Item Images, and Contact Phone."
|
|
|
34 |
|
35 |
+
If the image does not align with this base reference, please respond accordingly with "not applicable, as the image appears not related or lacks necessary information."
|
36 |
+
|
37 |
+
If the image aligns with this base reference, proceed with the following steps to generate a response:
|
38 |
+
|
39 |
+
Second, check the quantity and ROQ (Replenishment Order Quantity) columns to identify items requiring reorder. Generate a response containing the list of all items below their respective ROQ levels in the following format:
|
40 |
+
|
41 |
+
** ROQ (MM/DD/YYYY) **
|
42 |
Item ID, Shortage (Quantity - ROQ), Contact Phone
|
|
|
43 |
|
44 |
For example:
|
45 |
+
|
46 |
+
** ROQ (02/19/2024) **
|
47 |
#11608, 70 (30-100), 1-858-7331029
|
48 |
#61785, 5 (5-10), 1-858-1233
|
49 |
|
50 |
+
When rendering the response, please ensure ALL items meeting the ROQ requirements are on the list. Also, be aware that there may be NO items whose quantity is below the ROQ.
|
51 |
+
|
52 |
"""
|
53 |
txt_display_2 = '--- '
|
54 |
|