FlawedLLM
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def chunk_it(input_command, item_list):
|
|
| 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
|
| 81 |
inputs = tokenizer(
|
| 82 |
[
|
| 83 |
alpaca_prompt.format(
|
|
@@ -103,7 +103,7 @@ def chunk_it(input_command, item_list):
|
|
| 103 |
ReorderPoint (integer)
|
| 104 |
last n days transactions:
|
| 105 |
ItemName (string)
|
| 106 |
-
Duration (integer: number of days
|
| 107 |
view risk inventory:
|
| 108 |
RiskType (string: "overstock", "understock", or Null for all risk types)
|
| 109 |
view inventory:
|
|
@@ -117,10 +117,11 @@ def chunk_it(input_command, item_list):
|
|
| 117 |
ShelfNo (string or integer)
|
| 118 |
report generation:
|
| 119 |
ItemName (string)
|
| 120 |
-
Duration (integer: number of days
|
| 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
|
|
|
|
| 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 when adding item. Try to be as strict as possible, if item name not available, then write null."
|
| 81 |
inputs = tokenizer(
|
| 82 |
[
|
| 83 |
alpaca_prompt.format(
|
|
|
|
| 103 |
ReorderPoint (integer)
|
| 104 |
last n days transactions:
|
| 105 |
ItemName (string)
|
| 106 |
+
Duration (integer: number of days)
|
| 107 |
view risk inventory:
|
| 108 |
RiskType (string: "overstock", "understock", or Null for all risk types)
|
| 109 |
view inventory:
|
|
|
|
| 117 |
ShelfNo (string or integer)
|
| 118 |
report generation:
|
| 119 |
ItemName (string)
|
| 120 |
+
Duration (integer: number of days)
|
| 121 |
ReportType (string: "profit", "revenue", "inventory", or Null for all reports)
|
| 122 |
|
| 123 |
{item_list}
|
| 124 |
+
If any things not available, write null
|
| 125 |
|
| 126 |
ALWAYS provide output in a JSON format.''', # instruction
|
| 127 |
input_command, # input
|