hsienchen commited on
Commit
789b2ec
·
verified ·
1 Parent(s): 9baabee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, 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
 
@@ -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 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 = '--- '
 
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 = '--- '