IceClear commited on
Commit
a6ea067
·
1 Parent(s): af83433
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -12,6 +12,7 @@
12
  # // See the License for the specific language governing permissions and
13
  # // limitations under the License.
14
  import spaces
 
15
 
16
  import os
17
  import torch
@@ -60,6 +61,14 @@ from pathlib import Path
60
  from urllib.parse import urlparse
61
  from torch.hub import download_url_to_file, get_dir
62
 
 
 
 
 
 
 
 
 
63
  def load_file_from_url(url, model_dir=None, progress=True, file_name=None):
64
  """Load file form http url, will download models if necessary.
65
 
@@ -420,11 +429,11 @@ Redistribution and use for non-commercial purposes should follow this license.
420
 
421
  If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
422
 
423
- <div>
424
- 🤗 Find Me:
425
- <a href="https://twitter.com/Iceclearwjy"><img style="margin-top:0.5em; margin-bottom:0.5em" src="https://img.shields.io/twitter/follow/Iceclearwjy?label=%40Iceclearwjy&style=social" alt="Twitter Follow"></a>
426
- <a href="https://github.com/IceClear"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/IceClear?style=social" alt="Github Follow"></a>
427
- </div>
428
 
429
  <center><img src='https://visitor-badge.laobi.icu/badge?page_id=ByteDance-Seed/SeedVR' alt='visitors'></center>
430
  """
 
12
  # // See the License for the specific language governing permissions and
13
  # // limitations under the License.
14
  import spaces
15
+ import subprocess
16
 
17
  import os
18
  import torch
 
61
  from urllib.parse import urlparse
62
  from torch.hub import download_url_to_file, get_dir
63
 
64
+ result = subprocess.run(
65
+ ["bash", "setup.sh"],
66
+ capture_output=True,
67
+ text=True,
68
+ check=True
69
+ )
70
+ print(f"✅ setup completed:\n{result.stdout}")
71
+
72
  def load_file_from_url(url, model_dir=None, progress=True, file_name=None):
73
  """Load file form http url, will download models if necessary.
74
 
 
429
 
430
  If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
431
 
432
+ # <div>
433
+ 🤗 Find Me:
434
+ <a href="https://twitter.com/Iceclearwjy"><img style="margin-top:0.5em; margin-bottom:0.5em" src="https://img.shields.io/twitter/follow/Iceclearwjy?label=%40Iceclearwjy&style=social" alt="Twitter Follow"></a>
435
+ <a href="https://github.com/IceClear"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/IceClear?style=social" alt="Github Follow"></a>
436
+ # </div>
437
 
438
  <center><img src='https://visitor-badge.laobi.icu/badge?page_id=ByteDance-Seed/SeedVR' alt='visitors'></center>
439
  """