Spaces:
Build error
Build error
Ruslan Magana Vsevolodovna
commited on
Commit
Β·
c9f2e16
1
Parent(s):
fd1acaf
test python 3.8.4
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ title: Clone Your Voice
|
|
| 3 |
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: yellow
|
| 6 |
-
python_version: 3.8.
|
| 7 |
sdk: gradio
|
| 8 |
sdk_version: 3.0.4
|
| 9 |
app_file: app.py
|
|
|
|
| 3 |
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: yellow
|
| 6 |
+
python_version: 3.8.4
|
| 7 |
sdk: gradio
|
| 8 |
sdk_version: 3.0.4
|
| 9 |
app_file: app.py
|
app.py
CHANGED
|
@@ -308,12 +308,11 @@ def greet(Text,Voicetoclone ,input_mic=None):
|
|
| 308 |
if is_no_text:
|
| 309 |
Text="Please add text and audio, to the program, thank you."
|
| 310 |
|
| 311 |
-
if input_mic != None:
|
| 312 |
# Get the wav file from the microphone
|
| 313 |
print('The value of MIC IS :',input_mic,type(input_mic))
|
| 314 |
Voicetoclone= input_mic
|
| 315 |
|
| 316 |
-
|
| 317 |
text= "%s" % (Text)
|
| 318 |
reference_files= Voicetoclone
|
| 319 |
print("path url")
|
|
@@ -356,7 +355,6 @@ demo = gr.Interface(
|
|
| 356 |
label='or record',
|
| 357 |
type="filepath",
|
| 358 |
optional=True)
|
| 359 |
-
|
| 360 |
],
|
| 361 |
outputs="audio",
|
| 362 |
|
|
@@ -370,11 +368,10 @@ demo = gr.Interface(
|
|
| 370 |
</p>
|
| 371 |
</div>''',
|
| 372 |
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
# ]
|
| 378 |
|
| 379 |
)
|
| 380 |
demo.launch()
|
|
|
|
| 308 |
if is_no_text:
|
| 309 |
Text="Please add text and audio, to the program, thank you."
|
| 310 |
|
| 311 |
+
if input_mic != "" and input_mic != None :
|
| 312 |
# Get the wav file from the microphone
|
| 313 |
print('The value of MIC IS :',input_mic,type(input_mic))
|
| 314 |
Voicetoclone= input_mic
|
| 315 |
|
|
|
|
| 316 |
text= "%s" % (Text)
|
| 317 |
reference_files= Voicetoclone
|
| 318 |
print("path url")
|
|
|
|
| 355 |
label='or record',
|
| 356 |
type="filepath",
|
| 357 |
optional=True)
|
|
|
|
| 358 |
],
|
| 359 |
outputs="audio",
|
| 360 |
|
|
|
|
| 368 |
</p>
|
| 369 |
</div>''',
|
| 370 |
|
| 371 |
+
examples = [["I am the cloned version of Donald Trump. Well. I think what's happening to this country is unbelievably bad. We're no longer a respected country","trump.mp3",],
|
| 372 |
+
["I am the cloned version of Elon Musk. Persistence is very important. You should not give up unless you are forced to give up.","musk.mp3",] ,
|
| 373 |
+
["I am the cloned version of Elizabeth. It has always been easy to hate and destroy. To build and to cherish is much more difficult." ,"queen.mp3",]
|
| 374 |
+
]
|
|
|
|
| 375 |
|
| 376 |
)
|
| 377 |
demo.launch()
|