Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,11 +11,23 @@
|
|
| 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 |
-
|
|
|
|
|
|
|
| 16 |
import os
|
|
|
|
|
|
|
| 17 |
import sys
|
| 18 |
-
import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
# --- ETAPA 1: Prepara莽茫o do Ambiente ---
|
| 21 |
# Clonar o reposit贸rio para garantir que todas as pastas de c贸digo (data, common, etc.) existam.
|
|
|
|
| 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 |
+
|
| 16 |
+
import torch
|
| 17 |
+
import torch.distributed as dist
|
| 18 |
import os
|
| 19 |
+
import gc
|
| 20 |
+
import logging
|
| 21 |
import sys
|
| 22 |
+
import subprocess
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
from urllib.parse import urlparse
|
| 25 |
+
from torch.hub import download_url_to_file
|
| 26 |
+
import gradio as gr
|
| 27 |
+
import mediapy
|
| 28 |
+
from einops import rearrange
|
| 29 |
+
import shutil
|
| 30 |
+
from omegaconf import OmegaConf
|
| 31 |
|
| 32 |
# --- ETAPA 1: Prepara莽茫o do Ambiente ---
|
| 33 |
# Clonar o reposit贸rio para garantir que todas as pastas de c贸digo (data, common, etc.) existam.
|