Korakoe commited on
Commit
4217aac
1 Parent(s): f112524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
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
- print(idx)
14
- url = dataset["url"]
15
- prompt = dataset["prompt"]
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 = dataset["url"]
28
- prompt = dataset["prompt"]
29
- style = dataset["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