mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +08:00
parent
0536874dec
commit
b79e9d68e4
|
@ -94,7 +94,7 @@ def webApp():
|
|||
embed, _, _ = encoder.embed_utterance(encoder_wav, return_partials=True)
|
||||
|
||||
# Load input text
|
||||
texts = request.form["text"].split("\n")
|
||||
texts = filter(None, request.form["text"].split("\n"))
|
||||
punctuation = '!,。、,' # punctuate and split/clean text
|
||||
processed_texts = []
|
||||
for text in texts:
|
||||
|
@ -131,4 +131,4 @@ def webApp():
|
|||
return app
|
||||
|
||||
if __name__ == "__main__":
|
||||
webApp()
|
||||
webApp()
|
||||
|
|
Loading…
Reference in New Issue
Block a user