FlawedLLM commited on
Commit
7672cd0
1 Parent(s): b94a687

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -77,11 +77,11 @@ def chunk_it(input_command, item_list):
77
  ### Response:
78
  {}"""
79
  if item_list is not None:
80
- item_list="The ItemName should be STRICTLY chosen from the given list of ItemNames : " + item_list
81
  inputs = tokenizer(
82
  [
83
  alpaca_prompt.format(
84
- '''
85
  You will receive text input that you need to analyze to perform the following tasks:
86
 
87
  transaction: Record the details of an item transaction.
@@ -120,7 +120,9 @@ def chunk_it(input_command, item_list):
120
  Duration (integer: number of days, default: 6)
121
  ReportType (string: "profit", "revenue", "inventory", or Null for all reports)
122
 
123
- ALWAYS provide output in a JSON format.''' + item_list, # instruction
 
 
124
  input_command, # input
125
  "", # output - leave this blank for generation!
126
  )
 
77
  ### Response:
78
  {}"""
79
  if item_list is not None:
80
+ item_list = f"The ItemName should be STRICTLY chosen from the given list of ItemNames, : {item_list} , except sometime such as adding item"
81
  inputs = tokenizer(
82
  [
83
  alpaca_prompt.format(
84
+ f'''
85
  You will receive text input that you need to analyze to perform the following tasks:
86
 
87
  transaction: Record the details of an item transaction.
 
120
  Duration (integer: number of days, default: 6)
121
  ReportType (string: "profit", "revenue", "inventory", or Null for all reports)
122
 
123
+ {item_list}
124
+
125
+ ALWAYS provide output in a JSON format.''', # instruction
126
  input_command, # input
127
  "", # output - leave this blank for generation!
128
  )