Doubiiu commited on
Commit
1f30b52
1 Parent(s): ce90f7c

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +13 -4
gradio_app.py CHANGED
@@ -10,7 +10,16 @@ i2v_examples_interp_512 = [
10
  ['prompts/512_interp/Japan_v2_2_062266_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 789, 'prompts/512_interp/Japan_v2_2_062266_s2_frame3.png'],
11
  ['prompts/512_interp/Japan_v2_3_119235_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 123, 'prompts/512_interp/Japan_v2_3_119235_s2_frame3.png'],
12
  ]
13
-
 
 
 
 
 
 
 
 
 
14
  def dynamicrafter_demo(result_dir='./tmp/', res=512):
15
  if res == 1024:
16
  resolution = '576_1024'
@@ -27,9 +36,9 @@ def dynamicrafter_demo(result_dir='./tmp/', res=512):
27
  image2video.get_image = spaces.GPU(image2video.get_image, duration=120)
28
 
29
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
30
- gr.Markdown('''# Tooncrafter - generative cartoon interpolation
31
- [Github](https://github.com/ToonCrafter/ToonCrafter), [Model](https://huggingface.co/Doubiiu/ToonCrafter)
32
- ''')
33
  with gr.Tab(label='ToonCrafter_320x512'):
34
  with gr.Column():
35
  with gr.Row():
 
10
  ['prompts/512_interp/Japan_v2_2_062266_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 789, 'prompts/512_interp/Japan_v2_2_062266_s2_frame3.png'],
11
  ['prompts/512_interp/Japan_v2_3_119235_s2_frame1.png', 'an anime scene', 50, 7.5, 1.0, 10, 123, 'prompts/512_interp/Japan_v2_3_119235_s2_frame3.png'],
12
  ]
13
+ article = r"""
14
+ If ToonCrafter is helpful, please help to ⭐ the <a href='https://github.com/ToonCrafter/ToonCrafter' target='_blank'>Github Repo</a>. Thanks!
15
+ [![GitHub Stars](https://img.shields.io/github/stars/ToonCrafter/ToonCrafter?style=social)](https://github.com/ToonCrafter/ToonCrafter)
16
+ """
17
+ logo = r"""
18
+ <center><img src='https://doubiiu.github.io/projects/ToonCrafter/static/logo2.png' alt='ToonCrafter logo' style="width:80px; margin-bottom:10px"></center>
19
+ """
20
+ title = r"""
21
+ <h1 align="center">ToonCrafter: Generative Cartoon Interpolation</h1>
22
+ """
23
  def dynamicrafter_demo(result_dir='./tmp/', res=512):
24
  if res == 1024:
25
  resolution = '576_1024'
 
36
  image2video.get_image = spaces.GPU(image2video.get_image, duration=120)
37
 
38
  with gr.Blocks(analytics_enabled=False, css=css) as dynamicrafter_iface:
39
+ gr.Markdown(logo)
40
+ gr.Markdown(title)
41
+ gr.Markdown(article)
42
  with gr.Tab(label='ToonCrafter_320x512'):
43
  with gr.Column():
44
  with gr.Row():