Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -409,54 +409,54 @@ def create_shabbat_interface():
|
|
| 409 |
|
| 410 |
👆 **Enter your city name above and click 'Get Shabbat Times'**
|
| 411 |
|
| 412 |
-
|
| 413 |
|
| 414 |
-
#
|
| 415 |
-
|
| 416 |
|
| 417 |
-
#
|
| 418 |
-
|
| 419 |
|
| 420 |
-
|
| 421 |
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
|
| 426 |
-
#
|
| 427 |
-
|
| 428 |
|
| 429 |
-
|
| 430 |
-
#
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
#
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
|
| 454 |
-
#
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
|
| 461 |
# Example button handlers
|
| 462 |
for btn, city in example_btns:
|
|
|
|
| 409 |
|
| 410 |
👆 **Enter your city name above and click 'Get Shabbat Times'**
|
| 411 |
|
| 412 |
+
Or click one of the popular cities below for a quick search.
|
| 413 |
|
| 414 |
+
### 🇮🇱 **Common Israeli Cities:**
|
| 415 |
+
Use any of these city names: Jerusalem, Tel Aviv, Haifa, Beer Sheva, Netanya, Ashdod
|
| 416 |
|
| 417 |
+
### 🌍 **International Cities:**
|
| 418 |
+
Include country name: London, UK • Paris, France • New York, USA
|
| 419 |
|
| 420 |
+
---
|
| 421 |
|
| 422 |
+
**🕯️ Every Friday evening, Jewish families around the world light candles to welcome Shabbat**
|
| 423 |
+
"""
|
| 424 |
+
)
|
| 425 |
|
| 426 |
+
# Example buttons for popular cities
|
| 427 |
+
gr.Markdown("### 🌍 Quick Search - Popular Cities:")
|
| 428 |
|
| 429 |
+
with gr.Row():
|
| 430 |
+
# Israeli cities first for the detected user
|
| 431 |
+
popular_cities = [
|
| 432 |
+
"Jerusalem, Israel",
|
| 433 |
+
"Tel Aviv, Israel",
|
| 434 |
+
"Haifa, Israel",
|
| 435 |
+
"Beer Sheva, Israel",
|
| 436 |
+
"Netanya, Israel",
|
| 437 |
+
"Ashdod, Israel",
|
| 438 |
+
# International cities
|
| 439 |
+
"New York, NY",
|
| 440 |
+
"London, UK",
|
| 441 |
+
"Paris, France",
|
| 442 |
+
"Toronto, Canada",
|
| 443 |
+
"Los Angeles, CA",
|
| 444 |
+
"Miami, FL"
|
| 445 |
+
]
|
| 446 |
|
| 447 |
+
example_btns = []
|
| 448 |
+
for i in range(0, len(popular_cities), 4):
|
| 449 |
+
with gr.Row():
|
| 450 |
+
for city in popular_cities[i:i+4]:
|
| 451 |
+
btn = gr.Button(f"📍 {city}", size="sm")
|
| 452 |
+
example_btns.append((btn, city))
|
| 453 |
|
| 454 |
+
# Button click handlers
|
| 455 |
+
search_btn.click(
|
| 456 |
+
fn=agent.get_shabbat_times,
|
| 457 |
+
inputs=[city_input],
|
| 458 |
+
outputs=output_area
|
| 459 |
+
)
|
| 460 |
|
| 461 |
# Example button handlers
|
| 462 |
for btn, city in example_btns:
|