Spaces:
Running
Running
gera-richarte
commited on
Commit
·
41c9d30
1
Parent(s):
9c23665
ds is used afterall
Browse files
app.py
CHANGED
@@ -24,8 +24,8 @@ sets = {
|
|
24 |
}
|
25 |
|
26 |
def open_dataset(dataset, set_name, split, batch_size, shard = -1):
|
27 |
-
# I should really move dsi to a gr.State
|
28 |
-
global dsi
|
29 |
|
30 |
if shard == -1:
|
31 |
data_files = None
|
@@ -58,7 +58,7 @@ def open_dataset(dataset, set_name, split, batch_size, shard = -1):
|
|
58 |
)
|
59 |
|
60 |
def get_images(batch_size):
|
61 |
-
global dsi
|
62 |
|
63 |
items = []
|
64 |
metadatas = []
|
|
|
24 |
}
|
25 |
|
26 |
def open_dataset(dataset, set_name, split, batch_size, shard = -1):
|
27 |
+
# I should really move ds.config_name and dsi to a gr.State()
|
28 |
+
global dsi, ds
|
29 |
|
30 |
if shard == -1:
|
31 |
data_files = None
|
|
|
58 |
)
|
59 |
|
60 |
def get_images(batch_size):
|
61 |
+
global dsi, ds
|
62 |
|
63 |
items = []
|
64 |
metadatas = []
|