Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -260,20 +260,20 @@ async def run_hackrx(req: RunRequest):
|
|
| 260 |
|
| 261 |
base_flight_url = "https://register.hackrx.in/teams/public/flights/"
|
| 262 |
|
| 263 |
-
|
| 264 |
-
|
| 265 |
|
| 266 |
-
|
| 267 |
-
|
| 268 |
|
| 269 |
-
|
| 270 |
-
|
| 271 |
|
| 272 |
-
|
| 273 |
-
|
| 274 |
|
| 275 |
-
|
| 276 |
-
|
| 277 |
|
| 278 |
flight_response = requests.get(final_url)
|
| 279 |
flight_response.raise_for_status()
|
|
|
|
| 260 |
|
| 261 |
base_flight_url = "https://register.hackrx.in/teams/public/flights/"
|
| 262 |
|
| 263 |
+
if landmark == "Gateway of India":
|
| 264 |
+
final_url = base_flight_url + "getFirstCityFlightNumber"
|
| 265 |
|
| 266 |
+
elif landmark == "Taj Mahal":
|
| 267 |
+
final_url = base_flight_url + "getSecondCityFlightNumber"
|
| 268 |
|
| 269 |
+
elif landmark == "Eiffel Tower":
|
| 270 |
+
final_url = base_flight_url + "getThirdCityFlightNumber"
|
| 271 |
|
| 272 |
+
elif landmark == "Big Ben":
|
| 273 |
+
final_url = base_flight_url + "getFourthCityFlightNumber"
|
| 274 |
|
| 275 |
+
else:
|
| 276 |
+
final_url = base_flight_url + "getFifthCityFlightNumber"
|
| 277 |
|
| 278 |
flight_response = requests.get(final_url)
|
| 279 |
flight_response.raise_for_status()
|