Skip to content

Commit

Permalink
fix(examples): conda package name conflict (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Aug 23, 2024
1 parent a27357f commit 554554c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
12 changes: 10 additions & 2 deletions examples/onnx/exporter.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import os, sys

if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"

now_dir = os.getcwd()
sys.path.append(now_dir)

from dataclasses import asdict
import argparse
import os
import torch
from tqdm import tqdm
from ChatTTS.model.dvae import DVAE
from ChatTTS.config import Config
from vocos import Vocos
from vocos.pretrained import instantiate_class
import torch.jit as jit
from examples.onnx.gpt import GPT

from gpt import GPT

# disable cuda
torch.cuda.is_available = lambda: False
Expand Down
3 changes: 2 additions & 1 deletion examples/onnx/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import torch
import torch.nn as nn
from torch.nn.utils.parametrizations import weight_norm
from .modeling_llama import LlamaModel, LlamaConfig

from modeling_llama import LlamaModel, LlamaConfig


class GPT(nn.Module):
Expand Down
4 changes: 2 additions & 2 deletions examples/web/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import gradio as gr

from examples.web.funcs import *
from examples.web.ex import ex
from funcs import *
from ex import ex


def main():
Expand Down

0 comments on commit 554554c

Please sign in to comment.