Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,21 +1,13 @@
|
|
1 |
-
import
|
2 |
-
import json
|
3 |
-
import math
|
4 |
import torch
|
5 |
-
import sys
|
6 |
-
from torch import nn
|
7 |
-
from torch.nn import functional as F
|
8 |
-
from torch.utils.data import DataLoader
|
9 |
-
import translators.server as tss
|
10 |
import commons
|
11 |
import utils
|
12 |
-
from data_utils import TextAudioLoader, TextAudioCollate, TextAudioSpeakerLoader, TextAudioSpeakerCollate
|
13 |
from models import SynthesizerTrn
|
14 |
from text.symbols import symbols
|
15 |
from text import text_to_sequence
|
16 |
-
import
|
|
|
17 |
|
18 |
-
from scipy.io.wavfile import write
|
19 |
from torch.utils import mkldnn
|
20 |
|
21 |
mkldnn.enabled = False
|
|
|
1 |
+
import gradio as gr
|
|
|
|
|
2 |
import torch
|
|
|
|
|
|
|
|
|
|
|
3 |
import commons
|
4 |
import utils
|
|
|
5 |
from models import SynthesizerTrn
|
6 |
from text.symbols import symbols
|
7 |
from text import text_to_sequence
|
8 |
+
import numpy as np
|
9 |
+
import translators.server as tss
|
10 |
|
|
|
11 |
from torch.utils import mkldnn
|
12 |
|
13 |
mkldnn.enabled = False
|