Daemontatox commited on
Commit
c6ee6e7
·
verified ·
1 Parent(s): 7c08af8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +60 -18
app.py CHANGED
@@ -130,24 +130,66 @@ def bot_streaming(prompt_option, max_new_tokens=8192):
130
  # Define predetermined prompts
131
  prompts = {
132
  "Timesheet Details (Full Extraction)": (
133
- "Based on the provided timesheet details, extract the following information:\n"
134
- " - Full name of the person\n"
135
- " - Position title of the person\n"
136
- " - Work location\n"
137
- " - Contractor's name\n"
138
- " - NOC ID\n"
139
- " - Month and year (in MM/YYYY format)\n"
140
- "And from the bottom table:\n"
141
- " - Number of service days onshore\n"
142
- " - Number of standby days onshore in Doha\n"
143
- " - Number of service days offshore\n"
144
- " - Number of service days during weekends or public holidays\n"
145
- " - Number of standby and extended hitch days offshore\n"
146
- " - Number of extended hitch days onshore for rotational personnel\n"
147
- " - Number of Per Diem days for onshore/offshore rotational personnel\n"
148
- " - Number of training days\n"
149
- " - Number of travel days\n"
150
- " - Number of offshore days"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  ),
152
  "Timesheet Details (Basic Extraction)": (
153
  "Based on the provided timesheet details, extract the following information:\n"
 
130
  # Define predetermined prompts
131
  prompts = {
132
  "Timesheet Details (Full Extraction)": (
133
+ """Extract structured information from the provided timesheet. The extracted details should include:
134
+
135
+ 1. Personnel Details:
136
+
137
+ Name
138
+
139
+ Position Title
140
+
141
+ Work Location
142
+
143
+ Contractor Status (Yes/No)
144
+
145
+ NOC ID
146
+
147
+ Month and Year
148
+
149
+
150
+
151
+ 2. Service and Activity Summary:
152
+
153
+ Regular Service Days (ONSHORE)
154
+
155
+ Standby Days (ONSHORE in Doha)
156
+
157
+ Offshore Days
158
+
159
+ Standby & Extended Hitch Days (OFFSHORE)
160
+
161
+ Extended Hitch Days (ONSHORE Rotational)
162
+
163
+ Service during Weekends & Public Holidays
164
+
165
+
166
+
167
+ 3. Overtime and Compensation:
168
+
169
+ ONSHORE Overtime Hours (Over 8 hours)
170
+
171
+ OFFSHORE Overtime Hours (Over 12 hours)
172
+
173
+ Per Diem Days (ONSHORE/OFFSHORE Rotational Personnel)
174
+
175
+
176
+
177
+ 4. Training and Travel:
178
+
179
+ Training Days
180
+
181
+ Travel Days
182
+
183
+
184
+
185
+ 5. Totals:
186
+
187
+ Provide totals for all categories where applicable.
188
+
189
+
190
+
191
+
192
+ Ensure all extracted data is presented in a clean, structured format. Omit any irrelevant or unrecognizable content. Use the exact terminology and units (e.g., 'days,' 'hours') as found in the document."""
193
  ),
194
  "Timesheet Details (Basic Extraction)": (
195
  "Based on the provided timesheet details, extract the following information:\n"