Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,17 @@ def convert_yt_to_wav(url):
|
|
42 |
return "Se ha perdido la conexión, recarga o reintentalo nuevamente más tarde.", None
|
43 |
except Exception as e:
|
44 |
return str(e), None
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
with gr.Blocks() as app:
|
|
|
|
|
47 |
|
48 |
with gr.Tab("模型搜索及上传"):
|
49 |
gr.HTML("<h3>搜索AI歌手模型</h3>")
|
@@ -52,7 +61,7 @@ with gr.Blocks() as app:
|
|
52 |
with gr.Row():
|
53 |
sarch_output = gr.Markdown(label="搜索结果")
|
54 |
|
55 |
-
btn_search_model = gr.Button(value="开始搜索吧💖")
|
56 |
btn_search_model.click(fn=search_model, inputs=[search_name], outputs=[sarch_output])
|
57 |
|
58 |
gr.HTML("<h3>上传AI歌手模型至社区,上传完成后您立即可以搜索到您上传的模型</h3>")
|
@@ -65,7 +74,7 @@ with gr.Blocks() as app:
|
|
65 |
with gr.Row():
|
66 |
post_output = gr.Markdown(label="模型上传状态")
|
67 |
|
68 |
-
btn_post_model = gr.Button(value="开始上传吧💕")
|
69 |
btn_post_model.click(fn=post_model, inputs=[post_name, post_model_url, post_version, post_creator], outputs=[post_output])
|
70 |
|
71 |
# with gr.Column():
|
|
|
42 |
return "Se ha perdido la conexión, recarga o reintentalo nuevamente más tarde.", None
|
43 |
except Exception as e:
|
44 |
return str(e), None
|
45 |
+
|
46 |
+
|
47 |
+
title_markdown = ("""
|
48 |
+
<h1 align="center"> 🌊💕🎶 滔滔AI,AI歌手模型开源社区 </h2>
|
49 |
+
<h2 align="center"> 🌟 完全开源、完全免费、共建共享!全网AI歌手任您选择! </h2>
|
50 |
+
""")
|
51 |
+
|
52 |
+
|
53 |
with gr.Blocks() as app:
|
54 |
+
|
55 |
+
gr.Markdown(title_markdown)
|
56 |
|
57 |
with gr.Tab("模型搜索及上传"):
|
58 |
gr.HTML("<h3>搜索AI歌手模型</h3>")
|
|
|
61 |
with gr.Row():
|
62 |
sarch_output = gr.Markdown(label="搜索结果")
|
63 |
|
64 |
+
btn_search_model = gr.Button(value="开始搜索吧💖", variant="primary")
|
65 |
btn_search_model.click(fn=search_model, inputs=[search_name], outputs=[sarch_output])
|
66 |
|
67 |
gr.HTML("<h3>上传AI歌手模型至社区,上传完成后您立即可以搜索到您上传的模型</h3>")
|
|
|
74 |
with gr.Row():
|
75 |
post_output = gr.Markdown(label="模型上传状态")
|
76 |
|
77 |
+
btn_post_model = gr.Button(value="开始上传吧💕", variant="primary")
|
78 |
btn_post_model.click(fn=post_model, inputs=[post_name, post_model_url, post_version, post_creator], outputs=[post_output])
|
79 |
|
80 |
# with gr.Column():
|