Update app.py
Browse files
app.py
CHANGED
|
@@ -30,16 +30,16 @@ For example:
|
|
| 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,
|
| 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 |
-
|
| 40 |
|
| 41 |
** ROQ (MM/DD/YYYY) **
|
| 42 |
-
Item ID, Shortage (Quantity -
|
| 43 |
|
| 44 |
For example:
|
| 45 |
|
|
@@ -47,7 +47,7 @@ For example:
|
|
| 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
|
| 51 |
|
| 52 |
"""
|
| 53 |
txt_display_2 = '--- '
|
|
|
|
| 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, Minimum, 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 |
+
Check the Quantity against the respective Minimum for each row. If the Quantity is less than the Minimum, then the respective Item ID is in a shortage state, and the shortage is defined as the negative value of Quantity - Minimum. Provide a list of all items in shortage in the following format:
|
| 40 |
|
| 41 |
** ROQ (MM/DD/YYYY) **
|
| 42 |
+
Item ID, Shortage (Quantity - Minimum), Contact Phone
|
| 43 |
|
| 44 |
For example:
|
| 45 |
|
|
|
|
| 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 in shortage state are on the list. Also, be aware that there may also be NO item in shortage state.
|
| 51 |
|
| 52 |
"""
|
| 53 |
txt_display_2 = '--- '
|