Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ filetypes = {
|
|
| 60 |
}
|
| 61 |
|
| 62 |
# Functions
|
| 63 |
-
def uniform_sample(sequence, n): return
|
| 64 |
|
| 65 |
def build_image(path): return [Image.open(path).convert("RGB")]
|
| 66 |
|
|
|
|
| 60 |
}
|
| 61 |
|
| 62 |
# Functions
|
| 63 |
+
def uniform_sample(sequence, n): return sequence[::max(len(sequence) // n,1)][:n]
|
| 64 |
|
| 65 |
def build_image(path): return [Image.open(path).convert("RGB")]
|
| 66 |
|