JunhaoZhuang commited on
Commit
6a9a1ac
β€’
1 Parent(s): 45cccad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -45
app.py CHANGED
@@ -66,30 +66,28 @@ from util import util
66
  from huggingface_hub import snapshot_download
67
 
68
 
69
- # article = r"""
70
- # If ColorFlow is helpful, please help to ⭐ the <a href='https://github.com/TencentARC/ColorFlow' target='_blank'>Github Repo</a>. Thanks! [![GitHub Stars](https://img.shields.io/github/stars/TencentARC/ColorFlow)](https://github.com/TencentARC/ColorFlow)
71
- # ---
72
-
73
- # πŸ“§ **Contact**
74
- # <br>
75
- # If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
76
-
77
- # πŸ“ **Citation**
78
- # <br>
79
- # If our work is useful for your research, please consider citing:
80
- # ```bibtex
81
- # @misc{zhuang2024colorflow,
82
- # title={ColorFlow: Retrieval-Augmented Image Sequence Colorization},
83
- # author={Junhao Zhuang and Xuan Ju and Zhaoyang Zhang and Yong Liu and Shiyi Zhang and Chun Yuan and Ying Shan},
84
- # year={2024},
85
- # eprint={2412.11815},
86
- # archivePrefix={arXiv},
87
- # primaryClass={cs.CV},
88
- # url={https://arxiv.org/abs/2412.11815},
89
- # }
90
- # ```
91
-
92
- # """
93
 
94
  model_global_path = snapshot_download(repo_id="TencentARC/ColorFlow", cache_dir='./colorflow/', repo_type="model")
95
  print(model_global_path)
@@ -537,30 +535,11 @@ with gr.Blocks() as demo:
537
  label="Examples",
538
  examples_per_page=6,
539
  )
540
-
 
541
  gr.HTML(
542
  '<a href="https://github.com/TencentARC/ColorFlow"><img src="https://img.shields.io/github/stars/TencentARC/ColorFlow" alt="GitHub Stars"></a>'
543
  )
544
- gr.HTML(
545
- """
546
- πŸ“§ **Contact**<br>
547
- If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
548
-
549
- πŸ“ **Citation**<br>
550
- If our work is useful for your research, please consider citing:
551
- ```
552
- @misc{zhuang2024colorflow,
553
- title={ColorFlow: Retrieval-Augmented Image Sequence Colorization},
554
- author={Junhao Zhuang and Xuan Ju and Zhaoyang Zhang and Yong Liu and Shiyi Zhang and Chun Yuan and Ying Shan},
555
- year={2024},
556
- eprint={2412.11815},
557
- archivePrefix={arXiv},
558
- primaryClass={cs.CV},
559
- url={https://arxiv.org/abs/2412.11815},
560
- }
561
- ```
562
- """
563
- )
564
 
565
 
566
  demo.launch()
 
66
  from huggingface_hub import snapshot_download
67
 
68
 
69
+ article = r"""
70
+ πŸ“§ **Contact**
71
+ <br>
72
+ If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
73
+
74
+ πŸ“ **Citation**
75
+ <br>
76
+ If our work is useful for your research, please consider citing:
77
+ ```bibtex
78
+ @misc{zhuang2024colorflow,
79
+ title={ColorFlow: Retrieval-Augmented Image Sequence Colorization},
80
+ author={Junhao Zhuang and Xuan Ju and Zhaoyang Zhang and Yong Liu and Shiyi Zhang and Chun Yuan and Ying Shan},
81
+ year={2024},
82
+ eprint={2412.11815},
83
+ archivePrefix={arXiv},
84
+ primaryClass={cs.CV},
85
+ url={https://arxiv.org/abs/2412.11815},
86
+ }
87
+ ```
88
+ ---
89
+ If ColorFlow is helpful, please help to ⭐ the <a href='https://github.com/TencentARC/ColorFlow' target='_blank'>Github Repo</a>. Thanks! [![GitHub Stars](https://img.shields.io/github/stars/TencentARC/ColorFlow)](https://github.com/TencentARC/ColorFlow)
90
+ """
 
 
91
 
92
  model_global_path = snapshot_download(repo_id="TencentARC/ColorFlow", cache_dir='./colorflow/', repo_type="model")
93
  print(model_global_path)
 
535
  label="Examples",
536
  examples_per_page=6,
537
  )
538
+
539
+ gr.Markdown(article)
540
  gr.HTML(
541
  '<a href="https://github.com/TencentARC/ColorFlow"><img src="https://img.shields.io/github/stars/TencentARC/ColorFlow" alt="GitHub Stars"></a>'
542
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
543
 
544
 
545
  demo.launch()