Chakshu123 commited on
Commit
0ca1021
1 Parent(s): 443d045

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -85,12 +85,9 @@ def colorize(img: Dict[str, Image.Image], guide_img: Image.Image, seed: int, hin
85
 
86
 
87
  with gr.Blocks() as demo:
88
- gr.Markdown('''<center><h1>Anime Colorization With Hint</h1></center>
89
- <h2>Colorize your anime sketches with hint points.</h2>
90
- This is a modified version of
91
- <a href="https://github.com/HighCWu/pixel-guide-diffusion-for-anime-colorization">
92
- HighCWu/pixel-guide-diffusion-for-anime-colorization
93
- </a> with hint points inputs.<br />
94
  ''')
95
  with gr.Row():
96
  with gr.Column():
@@ -114,12 +111,8 @@ HighCWu/pixel-guide-diffusion-for-anime-colorization
114
  with gr.Column():
115
  output = gr.Image(type="pil", label="Output", interactive=False)
116
  gr.Markdown('''
117
- PS: Worse than the no hint version I thought. Probably because my model is underfitting in the super-resolution part<br />
118
- I modified a little gradio codes for uploading the colorful hint points.
119
  ''')
120
- gr.Markdown(
121
- '<center><img src="https://visitor-badge.glitch.me/badge?page_id=highcwu.anime-colorization-with-hint" alt="visitor badge"/></center>'
122
- )
123
  inp.upload(
124
  resize_original,
125
  inp,
@@ -132,4 +125,4 @@ I modified a little gradio codes for uploading the colorful hint points.
132
  )
133
 
134
  if __name__ == "__main__":
135
- demo.launch()
 
85
 
86
 
87
  with gr.Blocks() as demo:
88
+ gr.Markdown('''<center><h1>Image Colorization With Hint</h1></center>
89
+ <h2>Colorize your images/sketches with hint points.</h2>
90
+ <br />
 
 
 
91
  ''')
92
  with gr.Row():
93
  with gr.Column():
 
111
  with gr.Column():
112
  output = gr.Image(type="pil", label="Output", interactive=False)
113
  gr.Markdown('''
114
+ Upon uploading an image, kindly give color hints at specific points, and then run the model. Average inference time is about 52 seconds.
 
115
  ''')
 
 
 
116
  inp.upload(
117
  resize_original,
118
  inp,
 
125
  )
126
 
127
  if __name__ == "__main__":
128
+ demo.launch(share=True)