Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ data = pandas.read_csv("1-s2.0-S2352340918302014-mmc2.csv")
|
|
| 8 |
|
| 9 |
def how_many_designs(team: int, participant: int):
|
| 10 |
n = len(numpy.unique(data[(data['Team'] == team) & (data['Participant'] == participant)]['Design']))
|
| 11 |
-
return gradio.Slider.update(1, n, step=1
|
| 12 |
|
| 13 |
def print_design(team: int, participant: int, design: int):
|
| 14 |
df = data[(data['Team'] == 1) & (data['Participant'] == 1) & (data['Design'] == design)]
|
|
|
|
| 8 |
|
| 9 |
def how_many_designs(team: int, participant: int):
|
| 10 |
n = len(numpy.unique(data[(data['Team'] == team) & (data['Participant'] == participant)]['Design']))
|
| 11 |
+
return gradio.Slider.update(1, n, step=1)
|
| 12 |
|
| 13 |
def print_design(team: int, participant: int, design: int):
|
| 14 |
df = data[(data['Team'] == 1) & (data['Participant'] == 1) & (data['Design'] == design)]
|