Spaces:
Runtime error
Runtime error
Commit ·
c7acbec
1
Parent(s): c1a916c
unseen persons meet at the end
Browse files- __pycache__/speed_dating_scheduler.cpython-310.pyc +0 -0
- app.py +0 -8
- speed_dating_scheduler.py +14 -14
__pycache__/speed_dating_scheduler.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/speed_dating_scheduler.cpython-310.pyc and b/__pycache__/speed_dating_scheduler.cpython-310.pyc differ
|
|
|
app.py
CHANGED
|
@@ -77,12 +77,4 @@ with gr.Blocks() as interface:
|
|
| 77 |
timer_button.click(reset_timer, outputs=[timer_label])
|
| 78 |
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
interface.queue().launch()
|
|
|
|
| 77 |
timer_button.click(reset_timer, outputs=[timer_label])
|
| 78 |
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
interface.queue().launch()
|
speed_dating_scheduler.py
CHANGED
|
@@ -197,25 +197,25 @@ class SpeedDatingScheduler :
|
|
| 197 |
# remove duplicates
|
| 198 |
all_round_participants = list(set(all_round_participants))
|
| 199 |
|
| 200 |
-
if len(all_round_participants) == nb_participants :
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
|
| 208 |
-
|
| 209 |
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
|
| 214 |
|
| 215 |
-
|
| 216 |
|
| 217 |
-
else :
|
| 218 |
-
|
| 219 |
|
| 220 |
def get_next_speech_turn_style(self, dataframe):
|
| 221 |
self.speech_turn_index += 1
|
|
|
|
| 197 |
# remove duplicates
|
| 198 |
all_round_participants = list(set(all_round_participants))
|
| 199 |
|
| 200 |
+
#if len(all_round_participants) == nb_participants :
|
| 201 |
+
for table_index, table in enumerate(round) :
|
| 202 |
+
if len(table) >= 2 :
|
| 203 |
+
print(f"Table {table_index + 1} :")
|
| 204 |
+
for participant in table :
|
| 205 |
+
output_list.append((str(table_index + 1), participant.name))
|
| 206 |
+
print(participant.name)
|
| 207 |
|
| 208 |
+
self.round_index += 1
|
| 209 |
|
| 210 |
+
output_list = pd.DataFrame(output_list, columns = ['table', 'name']).style.apply(self.highlight_max_test, axis=1)
|
| 211 |
+
print(output_list)
|
| 212 |
+
self.current_round = output_list
|
| 213 |
|
| 214 |
|
| 215 |
+
return output_list, f"Round {self.round_index} / {self.max_rounds}"
|
| 216 |
|
| 217 |
+
#else :
|
| 218 |
+
# return [] , f"Round {self.max_rounds} / {self.max_rounds}"
|
| 219 |
|
| 220 |
def get_next_speech_turn_style(self, dataframe):
|
| 221 |
self.speech_turn_index += 1
|