BilalSardar commited on
Commit
ad9c714
1 Parent(s): 1b38604

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -103,12 +103,18 @@ def compute_spec(ref_file):
103
 
104
 
105
 
106
- def greet(Text,Voicetoclone):
107
  text= "%s" % (Text)
108
- reference_files= "%s" % (Voicetoclone)
109
- print("path url")
110
- print(Voicetoclone)
111
- sample= str(Voicetoclone)
 
 
 
 
 
 
112
  size= len(reference_files)*sys.getsizeof(reference_files)
113
  size2= size / 1000000
114
  if (size2 > 0.012) or len(text)>2000:
 
103
 
104
 
105
 
106
+ def greet(Text,Voicetoclone,VoiceMicrophone):
107
  text= "%s" % (Text)
108
+ if Voicetoclone is not None:
109
+ reference_files= "%s" % (Voicetoclone)
110
+ print("path url")
111
+ print(Voicetoclone)
112
+ sample= str(Voicetoclone)
113
+ else:
114
+ reference_files= "%s" % (VoiceMicrophone)
115
+ print("path url")
116
+ print(VoiceMicrophone)
117
+ sample= str(VoiceMicrophone)
118
  size= len(reference_files)*sys.getsizeof(reference_files)
119
  size2= size / 1000000
120
  if (size2 > 0.012) or len(text)>2000: