M17idd commited on
Commit
0bc57e9
·
verified ·
1 Parent(s): 0e6c12e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -42,7 +42,7 @@ ICONS = {
42
 
43
  with ui.layout_columns(fill=False):
44
  with ui.value_box(showcase=ICONS["user"]):
45
- "Total tippers"
46
 
47
  @render.express
48
  def total_tippers():
@@ -150,8 +150,8 @@ ui.include_css(app_dir / "styles.css")
150
 
151
  @reactive.calc
152
  def tips_data():
153
- bill = input.total_bill()
154
- idx1 = tips.total_bill.between(bill[0], bill[1])
155
  idx2 = tips.time.isin(input.time())
156
  return tips[idx1 & idx2]
157
 
@@ -159,5 +159,5 @@ def tips_data():
159
  @reactive.effect
160
  @reactive.event(input.reset)
161
  def _():
162
- ui.update_slider("total_bill", value=bill_rng)
163
- ui.update_checkbox_group("time", selected=["Lunch", "Dinner"])
 
42
 
43
  with ui.layout_columns(fill=False):
44
  with ui.value_box(showcase=ICONS["user"]):
45
+ "id"
46
 
47
  @render.express
48
  def total_tippers():
 
150
 
151
  @reactive.calc
152
  def tips_data():
153
+ سنی = input.سن()
154
+ idx1 = tips.سن.between(bill[0], bill[1])
155
  idx2 = tips.time.isin(input.time())
156
  return tips[idx1 & idx2]
157
 
 
159
  @reactive.effect
160
  @reactive.event(input.reset)
161
  def _():
162
+ ui.update_slider("رنج سنی", value=bill_rng)
163
+ ui.update_checkbox_group("تاریخ", selected=["Twitter", "Instagram"])