Commit
•
bb57f70
1
Parent(s):
d548a08
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,10 @@ def tts_fn(text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale):
|
|
72 |
audio = infer(text, sdp_ratio=sdp_ratio, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=length_scale, sid=speaker)
|
73 |
return "Success", (hps.data.sampling_rate, audio)
|
74 |
|
|
|
|
|
|
|
|
|
75 |
|
76 |
if __name__ == "__main__":
|
77 |
parser = argparse.ArgumentParser()
|
@@ -114,7 +118,7 @@ if __name__ == "__main__":
|
|
114 |
gr.Markdown("## <center>🌟 - 真实拟声、情感细腻:稻妻神里流太刀术皆传,神里绫华,参上! </center>")
|
115 |
gr.Markdown("### <center>🍻 - 更多精彩应用,尽在[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
116 |
with gr.Accordion(open=True):
|
117 |
-
gr.Markdown(
|
118 |
|
119 |
|
120 |
|
|
|
72 |
audio = infer(text, sdp_ratio=sdp_ratio, noise_scale=noise_scale, noise_scale_w=noise_scale_w, length_scale=length_scale, sid=speaker)
|
73 |
return "Success", (hps.data.sampling_rate, audio)
|
74 |
|
75 |
+
image_markdown = ("""
|
76 |
+
<h1 align="center"><a href="http://www.talktalkai.com"><img src="./linghua.png", alt="talktalkai" border="0" style="margin: 0 auto; height: 200px;" /></a> </h1>
|
77 |
+
""")
|
78 |
+
|
79 |
|
80 |
if __name__ == "__main__":
|
81 |
parser = argparse.ArgumentParser()
|
|
|
118 |
gr.Markdown("## <center>🌟 - 真实拟声、情感细腻:稻妻神里流太刀术皆传,神里绫华,参上! </center>")
|
119 |
gr.Markdown("### <center>🍻 - 更多精彩应用,尽在[滔滔AI](http://www.talktalkai.com);滔滔AI,为爱滔滔!💕</center>")
|
120 |
with gr.Accordion(open=True):
|
121 |
+
gr.Markdown(image_markdown)
|
122 |
|
123 |
|
124 |
|