Spaces:
Sleeping
Sleeping
Update prompts.yaml
Browse filesprint statement formatted
- prompts.yaml +6 -2
prompts.yaml
CHANGED
@@ -28,8 +28,12 @@
|
|
28 |
Code:
|
29 |
```py
|
30 |
flight="AA100"
|
31 |
-
|
32 |
-
print(
|
|
|
|
|
|
|
|
|
33 |
```<end_code>
|
34 |
|
35 |
---
|
|
|
28 |
Code:
|
29 |
```py
|
30 |
flight="AA100"
|
31 |
+
flight_info = flight_status(flight)
|
32 |
+
print(f"Flight {flight_info['flight_number']} with {flight_info['airline']} is currently {flight_info['status']}. "
|
33 |
+
f"The flight was scheduled to depart from {flight_info['departure']['airport']} on {flight_info['departure']['estimated']}, "
|
34 |
+
f"but it actually left at {flight_info['departure']['actual']} instead.\n"
|
35 |
+
f"On its way to {flight_info['arrival']['airport']}, the estimated time of arrival is {flight_info['arrival']['estimated']}. "
|
36 |
+
f"Currently, the actual arrival time is still pending." if flight_info['arrival']['actual'] is None else f" and actually arrived at {flight_info['arrival']['actual']}.")
|
37 |
```<end_code>
|
38 |
|
39 |
---
|