Spaces:
Runtime error
Runtime error
BilalSardar
commited on
Commit
•
ad9c714
1
Parent(s):
1b38604
Update app.py
Browse files
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 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|