PKUWilliamYang commited on
Commit
c3f9de8
1 Parent(s): 7f165fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -54,30 +54,30 @@ If you have any questions, please feel free to reach me out at <b>williamyang@pk
54
 
55
  FOOTER = '<div align=center><img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.laobi.icu/badge?page_id=williamyang1991/styleganex" /></div>'
56
 
57
-
58
- torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/234_sketch.jpg',
59
- '234_sketch.jpg')
60
- torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/output/ILip77SbmOE_inversion.pt',
61
- 'ILip77SbmOE_inversion.pt')
62
- torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/ILip77SbmOE.png',
63
- 'ILip77SbmOE.png')
64
- torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/ILip77SbmOE_mask.png',
65
- 'ILip77SbmOE_mask.png')
66
- torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/pexels-daniel-xavier-1239291.jpg',
67
- 'pexels-daniel-xavier-1239291.jpg')
68
- torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/529_2.mp4',
69
- '529_2.mp4')
70
- torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/684.mp4',
71
- '684.mp4')
72
- torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/pexels-anthony-shkraba-production-8136210.mp4',
73
- 'pexels-anthony-shkraba-production-8136210.mp4')
74
-
75
-
76
  def main():
77
  args = parse_args()
78
  args.device = 'cuda' if torch.cuda.is_available() else 'cpu'
79
  print('*** Now using %s.'%(args.device))
80
  model = Model(device=args.device)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
  with gr.Blocks(css='style.css') as demo:
83
  gr.Markdown(DESCRIPTION)
 
54
 
55
  FOOTER = '<div align=center><img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.laobi.icu/badge?page_id=williamyang1991/styleganex" /></div>'
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  def main():
58
  args = parse_args()
59
  args.device = 'cuda' if torch.cuda.is_available() else 'cpu'
60
  print('*** Now using %s.'%(args.device))
61
  model = Model(device=args.device)
62
+
63
+
64
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/234_sketch.jpg',
65
+ '234_sketch.jpg')
66
+ torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/output/ILip77SbmOE_inversion.pt',
67
+ 'ILip77SbmOE_inversion.pt')
68
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/ILip77SbmOE.png',
69
+ 'ILip77SbmOE.png')
70
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/ILip77SbmOE_mask.png',
71
+ 'ILip77SbmOE_mask.png')
72
+ torch.hub.download_url_to_file('https://raw.githubusercontent.com/williamyang1991/StyleGANEX/main/data/pexels-daniel-xavier-1239291.jpg',
73
+ 'pexels-daniel-xavier-1239291.jpg')
74
+ torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/529_2.mp4',
75
+ '529_2.mp4')
76
+ torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/684.mp4',
77
+ '684.mp4')
78
+ torch.hub.download_url_to_file('https://github.com/williamyang1991/StyleGANEX/raw/main/data/pexels-anthony-shkraba-production-8136210.mp4',
79
+ 'pexels-anthony-shkraba-production-8136210.mp4')
80
+
81
 
82
  with gr.Blocks(css='style.css') as demo:
83
  gr.Markdown(DESCRIPTION)