shiertier commited on
Commit
97d363a
·
verified ·
1 Parent(s): 81d9e31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -276,31 +276,14 @@ class ImageClient:
276
  prompts_data.append(
277
  {"type": "freetext", "value": negative_prompt, "weight": -1.0}
278
  )
279
- prompts_data.append(
280
- {
281
- "type": "elementum",
282
- "value": "b5edccfe-46a2-4a14-a8ff-f4d430343805",
283
- "uuid": "b5edccfe-46a2-4a14-a8ff-f4d430343805",
284
- "weight": 1.0,
285
- "name": "lumina1",
286
- "img_url": "https://oss.talesofai.cn/picture_s/1y7f53e6itfn_0.jpeg",
287
- "domain": "",
288
- "parent": "",
289
- "label": None,
290
- "sort_index": 0,
291
- "status": "IN_USE",
292
- "polymorphi_values": {},
293
- "sub_type": None,
294
- }
295
- )
296
  # prompts_data.append(
297
  # {
298
  # "type": "elementum",
299
- # "value": "dccc4881-c8da-4bb7-ae39-46ae3992e660",
300
- # "uuid": "dccc4881-c8da-4bb7-ae39-46ae3992e660",
301
  # "weight": 1.0,
302
- # "name": "lumina2",
303
- # "img_url": "https://oss.talesofai.cn/picture_s/x2an269l5qrz_0.jpeg",
304
  # "domain": "",
305
  # "parent": "",
306
  # "label": None,
@@ -310,6 +293,23 @@ class ImageClient:
310
  # "sub_type": None,
311
  # }
312
  # )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  return prompts_data
314
 
315
  def _build_payload(self, config: ImageGenerationConfig) -> dict[str, Any]:
 
276
  prompts_data.append(
277
  {"type": "freetext", "value": negative_prompt, "weight": -1.0}
278
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  # prompts_data.append(
280
  # {
281
  # "type": "elementum",
282
+ # "value": "b5edccfe-46a2-4a14-a8ff-f4d430343805",
283
+ # "uuid": "b5edccfe-46a2-4a14-a8ff-f4d430343805",
284
  # "weight": 1.0,
285
+ # "name": "lumina1",
286
+ # "img_url": "https://oss.talesofai.cn/picture_s/1y7f53e6itfn_0.jpeg",
287
  # "domain": "",
288
  # "parent": "",
289
  # "label": None,
 
293
  # "sub_type": None,
294
  # }
295
  # )
296
+ prompts_data.append(
297
+ {
298
+ "type": "elementum",
299
+ "value": "dccc4881-c8da-4bb7-ae39-46ae3992e660",
300
+ "uuid": "dccc4881-c8da-4bb7-ae39-46ae3992e660",
301
+ "weight": 1.0,
302
+ "name": "lumina2",
303
+ "img_url": "https://oss.talesofai.cn/picture_s/x2an269l5qrz_0.jpeg",
304
+ "domain": "",
305
+ "parent": "",
306
+ "label": None,
307
+ "sort_index": 0,
308
+ "status": "IN_USE",
309
+ "polymorphi_values": {},
310
+ "sub_type": None,
311
+ }
312
+ )
313
  return prompts_data
314
 
315
  def _build_payload(self, config: ImageGenerationConfig) -> dict[str, Any]: