awacke1 commited on
Commit
ed0f471
1 Parent(s): 93a3ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -16
app.py CHANGED
@@ -1,3 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import io, base64
3
  import numpy as np
@@ -5,27 +20,11 @@ import tensorflow as tf
5
  import mediapy
6
  import os
7
  import sys
8
- import streamlit as st
9
- import firebase_admin
10
- import datetime
11
  import transformers
12
 
13
  from transformers import pipeline
14
  from PIL import Image
15
  from huggingface_hub import snapshot_download
16
- from firebase_admin import credentials
17
- from firebase_admin import firestore
18
-
19
-
20
- #import os
21
- #os.system("pip install gradio==2.7.5.2")
22
- #import torch
23
- #import zipfile
24
- #import torchaudio
25
- #from glob import glob
26
- #import gradio as gr
27
-
28
-
29
 
30
 
31
  # firestore singleton is a cached multiuser instance to persist shared crowdsource memory
 
1
+ import streamlit as st
2
+ import firebase_admin
3
+ from firebase_admin import credentials
4
+ from firebase_admin import firestore
5
+ import datetime
6
+ from transformers import pipeline
7
+ import gradio as gr
8
+
9
+ import tempfile
10
+ from typing import Optional
11
+ import numpy as np
12
+ from TTS.utils.manage import ModelManager
13
+ from TTS.utils.synthesizer import Synthesizer
14
+
15
+
16
  import gradio as gr
17
  import io, base64
18
  import numpy as np
 
20
  import mediapy
21
  import os
22
  import sys
 
 
 
23
  import transformers
24
 
25
  from transformers import pipeline
26
  from PIL import Image
27
  from huggingface_hub import snapshot_download
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
 
30
  # firestore singleton is a cached multiuser instance to persist shared crowdsource memory