Spaces:
Running
Running
Update app.py
Browse files
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 |
-
"
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|