DGSpitzer commited on
Commit
1bfbaaa
1 Parent(s): 0acad98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -77,7 +77,7 @@ def get_result(text_prompts, style_indx):
77
 
78
  image_output = pipe(prompt).images[0]
79
 
80
- print("file name: " + image_output.filename)
81
 
82
  # Encode your PIL Image as a JPEG without writing to disk
83
  imagefile = "imageoutput.png"
@@ -249,7 +249,7 @@ examples = [
249
  ],
250
  [
251
  'Peking Opera at New York',
252
- '探索无限(Explore infinity)'
253
  ],
254
  [
255
  '古风少女',
@@ -257,11 +257,11 @@ examples = [
257
  ],
258
  [
259
  '辐射游戏角色',
260
- '探索无限(Explore infinity)'
261
  ],
262
  [
263
  'Fallout game character',
264
- '探索无限(Explore infinity)'
265
  ],
266
  [
267
  'Traditional Chinese Painting',
@@ -285,7 +285,7 @@ examples = [
285
  ],
286
  [
287
  '巨狼,飘雪,蓝色大片烟雾,毛发细致,烟雾缭绕,高清,3d,cg感,侧面照',
288
- '探索无限(Explore infinity)'
289
  ],
290
  [
291
  '汉服少女,中国山水画,青山绿水,溪水长流,古风,科技都市,丹青水墨,中国风',
@@ -301,19 +301,19 @@ examples = [
301
  ],
302
  [
303
  '暗黑破坏神',
304
- '探索无限(Explore infinity)'
305
  ],
306
  [
307
  '火焰,凤凰,少女,未来感,高清,3d,精致面容,cg感,古风,唯美,毛发细致,上半身立绘',
308
- '探索无限(Explore infinity)'
309
  ],
310
  [
311
  '浮世绘日本科幻哑光绘画,概念艺术,动漫风格神道寺禅园英雄动作序列,包豪斯',
312
- '探索无限(Explore infinity)'
313
  ],
314
  [
315
  '一只猫坐在椅子上,戴着一副墨镜,海盗风格',
316
- '探索无限(Explore infinity)'
317
  ],
318
  [
319
  '稲妻で作られた畏敬の念を抱かせる竜、コンセプトアート',
@@ -333,7 +333,7 @@ examples = [
333
  ],
334
  [
335
  '夕阳日落时,阳光落在云层上,海面波涛汹涌,风景,胶片感',
336
- '探索无限(Explore infinity)'
337
  ],
338
  [
339
  'Sunset, the sun falls on the clouds, the sea is rough, the scenery is filmy',
@@ -387,7 +387,7 @@ with block:
387
  <h1 style="font-weight: 900; margin-bottom: 7px;">Text to Image to Music to Video</h1>
388
  </div>
389
  <p style="margin-bottom: 10px; font-size: 94%">
390
- Powered by <a href="https://huggingface.co/spaces/PaddlePaddle/ERNIE-ViLG" target="_blank">ERNIE-ViLG 2.0</a>, <a href="https://huggingface.co/spaces/Mubert/Text-to-Music" target="_blank">Mubert AI</a>, <a href="https://huggingface.co/spaces/pharma/CLIP-Interrogator" target="_blank">CLIP Interrogator</a> and fffiloni's <a href="https://huggingface.co/spaces/fffiloni/img-to-music" target="_blank">Image to Music</a> projects
391
  </p>
392
  </div>
393
  """
@@ -414,7 +414,7 @@ with block:
414
  styles = gr.Dropdown(label="风格(style)", choices=['古风(Ancient Style)', '油画(Oil painting)', '水彩(Watercolor)',
415
  '卡通(Cartoon)', '二次元(Anime)', '浮世绘(Ukiyoe)', '蒸汽波艺术(Vaporwave)', 'low poly',
416
  '像素风格(Pixel Style)', '概念艺术(Conceptual Art)', '未来主义(Futurism)', '赛博朋克(Cyberpunk)', '写实风格(Realistic style)',
417
- '洛丽塔风格(Lolita style)', '巴洛克风格(Baroque style)', '超现实主义(Surrealism)', '探索无限(Explore infinity)'], value='探索无限(Explore infinity)', type="index")
418
  status_text = gr.Textbox(
419
  label="处理状态(Process status)",
420
  show_label=True,
 
77
 
78
  image_output = pipe(prompt).images[0]
79
 
80
+ print("Generated image with prompt " + prompt)
81
 
82
  # Encode your PIL Image as a JPEG without writing to disk
83
  imagefile = "imageoutput.png"
 
249
  ],
250
  [
251
  'Peking Opera at New York',
252
+ '默认(Default)'
253
  ],
254
  [
255
  '古风少女',
 
257
  ],
258
  [
259
  '辐射游戏角色',
260
+ '默认(Default)'
261
  ],
262
  [
263
  'Fallout game character',
264
+ '默认(Default)'
265
  ],
266
  [
267
  'Traditional Chinese Painting',
 
285
  ],
286
  [
287
  '巨狼,飘雪,蓝色大片烟雾,毛发细致,烟雾缭绕,高清,3d,cg感,侧面照',
288
+ '默认(Default)'
289
  ],
290
  [
291
  '汉服少女,中国山水画,青山绿水,溪水长流,古风,科技都市,丹青水墨,中国风',
 
301
  ],
302
  [
303
  '暗黑破坏神',
304
+ '默认(Default)'
305
  ],
306
  [
307
  '火焰,凤凰,少女,未来感,高清,3d,精致面容,cg感,古风,唯美,毛发细致,上半身立绘',
308
+ '默认(Default)'
309
  ],
310
  [
311
  '浮世绘日本科幻哑光绘画,概念艺术,动漫风格神道寺禅园英雄动作序列,包豪斯',
312
+ '默认(Default)'
313
  ],
314
  [
315
  '一只猫坐在椅子上,戴着一副墨镜,海盗风格',
316
+ '默认(Default)'
317
  ],
318
  [
319
  '稲妻で作られた畏敬の念を抱かせる竜、コンセプトアート',
 
333
  ],
334
  [
335
  '夕阳日落时,阳光落在云层上,海面波涛汹涌,风景,胶片感',
336
+ '默认(Default)'
337
  ],
338
  [
339
  'Sunset, the sun falls on the clouds, the sea is rough, the scenery is filmy',
 
387
  <h1 style="font-weight: 900; margin-bottom: 7px;">Text to Image to Music to Video</h1>
388
  </div>
389
  <p style="margin-bottom: 10px; font-size: 94%">
390
+ Powered by <a href="https://huggingface.co/riffusion/riffusion-model-v1" target="_blank">Riffusion Model V1</a>, <a href="https://huggingface.co/spaces/runwayml/stable-diffusion-v1-5" target="_blank">Stable Diffusion V1.5</a>, <a href="https://huggingface.co/spaces/pharma/CLIP-Interrogator" target="_blank">CLIP Interrogator</a>, fffiloni's <a href="https://huggingface.co/spaces/fffiloni/spectrogram-to-music" target="_blank">Riffusion Text-to-Music</a> and baidu language translation projects
391
  </p>
392
  </div>
393
  """
 
414
  styles = gr.Dropdown(label="风格(style)", choices=['古风(Ancient Style)', '油画(Oil painting)', '水彩(Watercolor)',
415
  '卡通(Cartoon)', '二次元(Anime)', '浮世绘(Ukiyoe)', '蒸汽波艺术(Vaporwave)', 'low poly',
416
  '像素风格(Pixel Style)', '概念艺术(Conceptual Art)', '未来主义(Futurism)', '赛博朋克(Cyberpunk)', '写实风格(Realistic style)',
417
+ '洛丽塔风格(Lolita style)', '巴洛克风格(Baroque style)', '超现实主义(Surrealism)', '默认(Default)'], value='默认(Default)', type="index")
418
  status_text = gr.Textbox(
419
  label="处理状态(Process status)",
420
  show_label=True,