wjmcat commited on
Commit
e8174e6
1 Parent(s): 0027f9c

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -20,6 +20,7 @@ def gen_image(prompt: str):
20
  content = requests.post(url, json={"text": prompt}).content
21
  try:
22
  new_content = content.decode(encoding='utf-8')
 
23
  if new_content.startswith("error: "):
24
  return []
25
  except:
@@ -46,10 +47,11 @@ def read_content(file_path: str) -> str:
46
  block = gr.Blocks(css=read_content('style.css'))
47
 
48
  examples = [
49
- '贝尼·赖特森、丹·蒙福德、亚伦·霍尔基的黑白血腥维多利亚小镇夜景特写街景,恐怖,月亮升起,交叉阴影,高对比度,超精细,极简主义构图,4k',
50
- '马头雕塑插图印刷,超精细,丹·蒙福德,亚伦·霍基,高对比度,低聚合风格',
51
- '一只熊从篝火旁的冰箱里偷食物,黑白雕刻版画,交叉影线',
52
- '厚涂层油画《悲伤男孩的特写肖像》,本·科迪,希卡里·希莫达'
 
53
  ]
54
 
55
 
 
20
  content = requests.post(url, json={"text": prompt}).content
21
  try:
22
  new_content = content.decode(encoding='utf-8')
23
+
24
  if new_content.startswith("error: "):
25
  return []
26
  except:
 
47
  block = gr.Blocks(css=read_content('style.css'))
48
 
49
  examples = [
50
+ '枯藤老树昏鸦,水墨画',
51
+ '小桥流水人家,水墨画',
52
+ '古道西风瘦马,水墨画',
53
+ '夕阳西下,水墨画',
54
+ '断肠人在天涯,水墨画',
55
  ]
56
 
57