Aduc-sdr commited on
Commit
d01b67f
verified
1 Parent(s): 2efcacb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -3
app.py CHANGED
@@ -11,10 +11,21 @@
11
  # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # // See the License for the specific language governing permissions and
13
  # // limitations under the License.
14
- import spaces
15
- import subprocess
16
  import os
 
 
17
  import sys
 
 
 
 
 
 
 
 
 
18
 
19
  # --- ETAPA 1: Clonar o Reposit贸rio Oficial do GitHub ---
20
  repo_name = "SeedVR"
@@ -55,7 +66,7 @@ def load_file_from_url(url, model_dir='.', progress=True, file_name=None):
55
  return cached_file
56
 
57
  # Baixar e instalar Apex pr茅-compilado (crucial para o ambiente do Spaces)
58
- apex_url = 'https://huggingface.co/ByteDance-Seed/SeedVR2-3B/resolve/main/apex-0.1-cp39-cp39-linux_x86_64.whl'
59
  apex_wheel_path = load_file_from_url(url=apex_url)
60
  print("Instalando Apex a partir do wheel baixado...")
61
  subprocess.run([python_executable, "-m", "pip", "install", "--force-reinstall", "--no-cache-dir", apex_wheel_path], check=True)
 
11
  # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
  # // See the License for the specific language governing permissions and
13
  # // limitations under the License.
14
+
15
+ import torch.distributed as dist
16
  import os
17
+ import gc
18
+ import logging
19
  import sys
20
+ import subprocess
21
+ from pathlib import Path
22
+ from urllib.parse import urlparse
23
+ from torch.hub import download_url_to_file
24
+ import gradio as gr
25
+ import mediapy
26
+ from einops import rearrange
27
+ import shutil
28
+ from omegaconf import OmegaConf
29
 
30
  # --- ETAPA 1: Clonar o Reposit贸rio Oficial do GitHub ---
31
  repo_name = "SeedVR"
 
66
  return cached_file
67
 
68
  # Baixar e instalar Apex pr茅-compilado (crucial para o ambiente do Spaces)
69
+ apex_url = 'https://huggingface.co/ByteDance-Seed/SeedVR2-3B/resolve/main/apex-0.1-cp310-cp310-linux_x86_64.whl'
70
  apex_wheel_path = load_file_from_url(url=apex_url)
71
  print("Instalando Apex a partir do wheel baixado...")
72
  subprocess.run([python_executable, "-m", "pip", "install", "--force-reinstall", "--no-cache-dir", apex_wheel_path], check=True)