Kangarroar commited on
Commit
dbcea98
1 Parent(s): 7caca23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -1,3 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from utils.hparams import hparams
2
  from preprocessing.data_gen_utils import get_pitch_parselmouth,get_pitch_crepe
3
  import numpy as np
@@ -10,6 +26,7 @@ from infer import *
10
  import logging
11
  from infer_tools.infer_tool import *
12
  ##EDIT FOR CPU
 
13
  # Open the file and read it into a string
14
  with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
15
  text = f.read()
 
1
+ title = "DIFF-SVC"
2
+ description = """
3
+ <p>
4
+ <body style="background-color: #18181a; color: white;"></body>
5
+ <center>
6
+ <h1>DIFF-SVC Inference Cloud</h1>
7
+ This is a Cloud Inference where you can render your models with your wav files
8
+ <p>Enter a link:</p>
9
+ <input type="text" id="link-input"/>
10
+ <p>Upload a WAV file:</p> <input type="file" id="wav-input" accept=".wav"/>
11
+ <button id="render-button">Render</button>
12
+ <p>Diff-SVC prediction:</p>
13
+ <p id="prediction-output"></p>
14
+ </center>
15
+ </p>
16
+ """
17
  from utils.hparams import hparams
18
  from preprocessing.data_gen_utils import get_pitch_parselmouth,get_pitch_crepe
19
  import numpy as np
 
26
  import logging
27
  from infer_tools.infer_tool import *
28
  ##EDIT FOR CPU
29
+
30
  # Open the file and read it into a string
31
  with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py") as f:
32
  text = f.read()