Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ startimg = 0
|
|
8 |
def get_dataset_forward():
|
9 |
global startimg
|
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"]
|
@@ -26,7 +26,8 @@ def get_dataset_back():
|
|
26 |
url = idx["url"]
|
27 |
prompt = idx["prompt"]
|
28 |
style = idx["style"]
|
29 |
-
|
|
|
30 |
return final
|
31 |
|
32 |
with gr.Blocks() as demo:
|
|
|
8 |
def get_dataset_forward():
|
9 |
global startimg
|
10 |
final = []
|
11 |
+
dataset = load_dataset("ShoukanLabs/OpenNiji-Dataset-Aesthetic-Finetune", split=f"train[{startimg}:{startimg + 50}]")
|
12 |
for idx in dataset:
|
13 |
url = idx["url"]
|
14 |
prompt = idx["prompt"]
|
|
|
26 |
url = idx["url"]
|
27 |
prompt = idx["prompt"]
|
28 |
style = idx["style"]
|
29 |
+
score = idx["score"]
|
30 |
+
final.append((url, f"{prompt}\n\n Style: {style}\n\n Aesthetic: {score}"))
|
31 |
return final
|
32 |
|
33 |
with gr.Blocks() as demo:
|