JacopoMangiavacchi commited on
Commit
109bbdb
1 Parent(s): 879376e

gradio HF demo

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
Example01.jpeg DELETED
Binary file (196 kB)
 
Output01.png DELETED
Binary file (865 kB)
 
app.py CHANGED
@@ -84,25 +84,26 @@ article = """
84
  <p style='text-align: center'>The \"ToonClip\" model was trained by <a href='https://twitter.com/JacopoMangia' target='_blank'>Jacopo Mangiavacchi</a> and available at <a href='https://github.com/jacopomangiavacchi/ComicsHeroMobileUNet' target='_blank'>Github Repo ComicsHeroMobileUNet</a></p>
85
  <p style='text-align: center'>The \"Comics Hero dataset\" used to train this model was produced by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a> and available at <a href='https://github.com/Norod/U-2-Net-StyleTransfer' target='_blank'>Github Repo Comics hero U2Net</a></p>
86
  <p style='text-align: center'>The \"ToonClip\" iOS mobile app using a CoreML version of this model is available on Apple App Store at <a href='https://apps.apple.com/us/app/toonclip/id1536285338' target='_blank'>ToonClip</a></p>
87
- <p style='text-align: center'>samples: </p>
 
88
  <p>
89
  <div id='mainDiv'>
90
  <div id='divOne' class='boxes'>
91
- <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/Example01.jpeg' alt='Example01'/>
92
  </div>
93
  <div id='divTwo' class='boxes'>
94
- <img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/Output01.png' alt='Output01'/>
95
  </div>
96
  <div id='divOne' class='boxes'>
97
- <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/Example01.jpeg' alt='Example01'/>
98
  </div>
99
  <div id='divTwo' class='boxes'>
100
- <img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/Output01.png' alt='Output01'/>
101
  </div>
102
  </div>
103
  </p>
104
  """
105
- examples=[['Example01.jpeg']]
106
 
107
  iface = gr.Interface(
108
  nogan,
 
84
  <p style='text-align: center'>The \"ToonClip\" model was trained by <a href='https://twitter.com/JacopoMangia' target='_blank'>Jacopo Mangiavacchi</a> and available at <a href='https://github.com/jacopomangiavacchi/ComicsHeroMobileUNet' target='_blank'>Github Repo ComicsHeroMobileUNet</a></p>
85
  <p style='text-align: center'>The \"Comics Hero dataset\" used to train this model was produced by <a href='https://linktr.ee/Norod78' target='_blank'>Doron Adler</a> and available at <a href='https://github.com/Norod/U-2-Net-StyleTransfer' target='_blank'>Github Repo Comics hero U2Net</a></p>
86
  <p style='text-align: center'>The \"ToonClip\" iOS mobile app using a CoreML version of this model is available on Apple App Store at <a href='https://apps.apple.com/us/app/toonclip/id1536285338' target='_blank'>ToonClip</a></p>
87
+ <br>
88
+ <p style='text-align: center'>Example images from untrained FFHQ validation set: </p>
89
  <p>
90
  <div id='mainDiv'>
91
  <div id='divOne' class='boxes'>
92
+ <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/input/01.jpeg' alt='Example01'/>
93
  </div>
94
  <div id='divTwo' class='boxes'>
95
+ <img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/output/01.png' alt='Output01'/>
96
  </div>
97
  <div id='divOne' class='boxes'>
98
+ <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/file/input/02.jpeg' alt='Example01'/>
99
  </div>
100
  <div id='divTwo' class='boxes'>
101
+ <img <img src='https://hf.space/gradioiframe/Jacopo/ComicsHeroMobileUNet/output02.png' alt='Output01'/>
102
  </div>
103
  </div>
104
  </p>
105
  """
106
+ examples=[['input/01.jpeg'], ['input/02.jpeg'], ['input/03.jpeg'], ['input/04.jpeg'], ['input/05.jpeg'], ['input/06.jpeg'], ['input/07.jpeg'], ['input/08.jpeg'], ['input/09.jpeg'], ['input/10.jpeg']]
107
 
108
  iface = gr.Interface(
109
  nogan,
input/.DS_Store ADDED
Binary file (6.15 kB). View file
 
input/01.jpeg ADDED
input/02.jpeg ADDED
input/03.jpeg ADDED
input/04.jpeg ADDED
input/05.jpeg ADDED
input/06.jpeg ADDED
input/07.jpeg ADDED
input/08.jpeg ADDED
input/09.jpeg ADDED
input/10.jpeg ADDED
output/01.png ADDED
output/02.png ADDED
output/03.png ADDED
output/04.png ADDED
output/05.png ADDED
output/06.png ADDED
output/07.png ADDED
output/08.png ADDED
output/09.png ADDED
output/10.png ADDED