yusufgundogdu commited on
Commit
0d2a018
·
verified ·
1 Parent(s): 00c756e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +70 -70
app.py CHANGED
@@ -6,76 +6,76 @@ app = Flask(__name__)
6
  fake_db = {
7
  "accounts": [],
8
  "generate_lists": {
9
- "items": {
10
- "title": "3D Anime Generate",
11
- "content": [
12
- {
13
- "credit": 100,
14
- "id": "1",
15
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/0.jpg",
16
- "name": "REALISTIC"
17
- },
18
- {
19
- "credit": 80,
20
- "id": "2",
21
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/2.jpg",
22
- "name": "DRAWING"
23
- },
24
- {
25
- "credit": 60,
26
- "id": "3",
27
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/3.jpg",
28
- "name": "TOY FIGURE"
29
- },
30
- {
31
- "credit": 120,
32
- "id": "4",
33
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/4.jpg",
34
- "name": "3D"
35
- },
36
- {
37
- "credit": 90,
38
- "id": "5",
39
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/1.jpg",
40
- "name": "ANIMATION"
41
- }
42
- ]
43
- },
44
- "items": {
45
- "title": "REALISTIC Generate",
46
- "content": [
47
- {
48
- "credit": 100,
49
- "id": "6",
50
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/0.jpg",
51
- "name": "REALISTIC"
52
- },
53
- {
54
- "credit": 80,
55
- "id": "7",
56
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/2.jpg",
57
- "name": "DRAWING"
58
- },
59
- {
60
- "credit": 60,
61
- "id": "8",
62
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/3.jpg",
63
- "name": "TOY FIGURE"
64
- },
65
- {
66
- "credit": 120,
67
- "id": "9",
68
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/4.jpg",
69
- "name": "3D"
70
- },
71
- {
72
- "credit": 90,
73
- "id": "10",
74
- "imageUrl": "https://huggingface.co/spaces/anime-backend/stablediffusionapi/resolve/main/assets/images/1.jpg",
75
- "name": "ANIMATION"
76
- }
77
- ]
78
- }
79
  }
80
  }
81
 
 
6
  fake_db = {
7
  "accounts": [],
8
  "generate_lists": {
9
+ "items": [
10
+ {
11
+ "title": "3D Anime Generate",
12
+ "content": [
13
+ {
14
+ "credit": 100,
15
+ "id": "1",
16
+ "imageUrl": "https://example.com/image1.jpg",
17
+ "name": "REALISTIC"
18
+ },
19
+ {
20
+ "credit": 80,
21
+ "id": "2",
22
+ "imageUrl": "https://example.com/image2.jpg",
23
+ "name": "DRAWING"
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ "title": "REALISTIC Generate",
29
+ "content": [
30
+ {
31
+ "credit": 100,
32
+ "id": "6",
33
+ "imageUrl": "https://example.com/image6.jpg",
34
+ "name": "REALISTIC"
35
+ },
36
+ {
37
+ "credit": 80,
38
+ "id": "7",
39
+ "imageUrl": "https://example.com/image7.jpg",
40
+ "name": "DRAWING"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "title": "DRAWING Generate",
46
+ "content": [
47
+ {
48
+ "credit": 60,
49
+ "id": "11",
50
+ "imageUrl": "https://example.com/image11.jpg",
51
+ "name": "SKETCH"
52
+ },
53
+ {
54
+ "credit": 90,
55
+ "id": "12",
56
+ "imageUrl": "https://example.com/image12.jpg",
57
+ "name": "PAINTING"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "title": "ANIMATION Generate",
63
+ "content": [
64
+ {
65
+ "credit": 120,
66
+ "id": "16",
67
+ "imageUrl": "https://example.com/image16.jpg",
68
+ "name": "3D"
69
+ },
70
+ {
71
+ "credit": 90,
72
+ "id": "17",
73
+ "imageUrl": "https://example.com/image17.jpg",
74
+ "name": "2D"
75
+ }
76
+ ]
77
+ }
78
+ ]
79
  }
80
  }
81