Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,9 @@ def get_dataset_forward():
|
|
10 |
final = []
|
11 |
dataset = load_dataset("ShoukanLabs/OpenNiji-Dataset", split=f"train[{startimg}:{startimg + 50}]")
|
12 |
for idx in dataset:
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
style = dataset["style"]
|
17 |
final.append((url, f"{prompt}\n\n Style: {style}"))
|
18 |
startimg += 50
|
19 |
return final
|
@@ -24,9 +23,9 @@ def get_dataset_back():
|
|
24 |
startimg -= 50
|
25 |
dataset = load_dataset("ShoukanLabs/OpenNiji-Dataset", split=f"train[{startimg}:{startimg + 50}]")
|
26 |
for idx in dataset:
|
27 |
-
url =
|
28 |
-
prompt =
|
29 |
-
style =
|
30 |
final.append((url, f"{prompt}\n\n Style: {style}"))
|
31 |
return final
|
32 |
|
|
|
10 |
final = []
|
11 |
dataset = load_dataset("ShoukanLabs/OpenNiji-Dataset", split=f"train[{startimg}:{startimg + 50}]")
|
12 |
for idx in dataset:
|
13 |
+
url = idx["url"]
|
14 |
+
prompt = idx["prompt"]
|
15 |
+
style = idx["style"]
|
|
|
16 |
final.append((url, f"{prompt}\n\n Style: {style}"))
|
17 |
startimg += 50
|
18 |
return final
|
|
|
23 |
startimg -= 50
|
24 |
dataset = load_dataset("ShoukanLabs/OpenNiji-Dataset", split=f"train[{startimg}:{startimg + 50}]")
|
25 |
for idx in dataset:
|
26 |
+
url = idx["url"]
|
27 |
+
prompt = idx["prompt"]
|
28 |
+
style = idx["style"]
|
29 |
final.append((url, f"{prompt}\n\n Style: {style}"))
|
30 |
return final
|
31 |
|