Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def add_participant(participant):
|
|
17 |
participants_text = "\n".join(participants_list)
|
18 |
|
19 |
# Return updated participant list for dropdowns
|
20 |
-
return participants_text, \
|
21 |
-
gr.Dropdown.update(choices=participants_list), \
|
22 |
gr.Dropdown.update(choices=participants_list)
|
23 |
|
24 |
def remove_participant(participant):
|
@@ -30,8 +30,8 @@ def remove_participant(participant):
|
|
30 |
participants_text = "\n".join(participants_list)
|
31 |
|
32 |
# Return updated participant list for dropdowns
|
33 |
-
return participants_text, \
|
34 |
-
gr.Dropdown.update(choices=participants_list), \
|
35 |
gr.Dropdown.update(choices=participants_list)
|
36 |
|
37 |
# Add expenses
|
@@ -133,8 +133,8 @@ def reset():
|
|
133 |
participants_set = set()
|
134 |
participants_list = []
|
135 |
participants_text = ""
|
136 |
-
return pd.DataFrame(expenses), [], participants_text, \
|
137 |
-
gr.Dropdown.update(choices=participants_list, value=None), \
|
138 |
gr.Dropdown.update(choices=participants_list, value=None)
|
139 |
|
140 |
# Gradio Interface
|
|
|
17 |
participants_text = "\n".join(participants_list)
|
18 |
|
19 |
# Return updated participant list for dropdowns
|
20 |
+
return participants_text, \
|
21 |
+
gr.Dropdown.update(choices=participants_list), \
|
22 |
gr.Dropdown.update(choices=participants_list)
|
23 |
|
24 |
def remove_participant(participant):
|
|
|
30 |
participants_text = "\n".join(participants_list)
|
31 |
|
32 |
# Return updated participant list for dropdowns
|
33 |
+
return participants_text, \
|
34 |
+
gr.Dropdown.update(choices=participants_list), \
|
35 |
gr.Dropdown.update(choices=participants_list)
|
36 |
|
37 |
# Add expenses
|
|
|
133 |
participants_set = set()
|
134 |
participants_list = []
|
135 |
participants_text = ""
|
136 |
+
return pd.DataFrame(expenses), [], participants_text, \
|
137 |
+
gr.Dropdown.update(choices=participants_list, value=None), \
|
138 |
gr.Dropdown.update(choices=participants_list, value=None)
|
139 |
|
140 |
# Gradio Interface
|