Spaces:
Runtime error
Runtime error
FlawedLLM
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def chunk_it(input_command):
|
|
80 |
alpaca_prompt.format(
|
81 |
'''
|
82 |
You will receive text input that you need to analyze to perform the following tasks:
|
83 |
-
|
84 |
transaction: Record the details of an item transaction.
|
85 |
last n days transactions: Retrieve transaction records for a specified time period.
|
86 |
view risk inventory: View inventory items based on a risk category.
|
@@ -89,14 +89,15 @@ def chunk_it(input_command):
|
|
89 |
old items: View old items in inventory.
|
90 |
report generation: Generate various inventory reports.
|
91 |
Required Parameters:
|
92 |
-
|
93 |
Each task requires specific parameters to execute correctly:
|
94 |
-
|
95 |
transaction:
|
96 |
ItemName (string)
|
97 |
ItemQt (quantity - integer)
|
98 |
-
|
99 |
ShelfNo (string or integer)
|
|
|
100 |
last n days transactions:
|
101 |
ItemName (string)
|
102 |
Duration (integer: number of days, default: 30)
|
@@ -115,7 +116,7 @@ def chunk_it(input_command):
|
|
115 |
ItemName (string)
|
116 |
Duration (integer: number of days, default: 6)
|
117 |
ReportType (string: "profit", "revenue", "inventory", or Null for all reports)
|
118 |
-
|
119 |
ALWAYS provide output in a JSON format.''', # instruction
|
120 |
input_command, # input
|
121 |
"", # output - leave this blank for generation!
|
|
|
80 |
alpaca_prompt.format(
|
81 |
'''
|
82 |
You will receive text input that you need to analyze to perform the following tasks:
|
83 |
+
|
84 |
transaction: Record the details of an item transaction.
|
85 |
last n days transactions: Retrieve transaction records for a specified time period.
|
86 |
view risk inventory: View inventory items based on a risk category.
|
|
|
89 |
old items: View old items in inventory.
|
90 |
report generation: Generate various inventory reports.
|
91 |
Required Parameters:
|
92 |
+
|
93 |
Each task requires specific parameters to execute correctly:
|
94 |
+
|
95 |
transaction:
|
96 |
ItemName (string)
|
97 |
ItemQt (quantity - integer)
|
98 |
+
Type (string: "sale" or "purchase" or "return")
|
99 |
ShelfNo (string or integer)
|
100 |
+
ReorderPoint (integer)
|
101 |
last n days transactions:
|
102 |
ItemName (string)
|
103 |
Duration (integer: number of days, default: 30)
|
|
|
116 |
ItemName (string)
|
117 |
Duration (integer: number of days, default: 6)
|
118 |
ReportType (string: "profit", "revenue", "inventory", or Null for all reports)
|
119 |
+
|
120 |
ALWAYS provide output in a JSON format.''', # instruction
|
121 |
input_command, # input
|
122 |
"", # output - leave this blank for generation!
|