Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -102,13 +102,13 @@ def get_arena_table(model_table_df):
|
|
102 |
|
103 |
|
104 |
title_markdown = ("""
|
105 |
-
<h2 align="center">
|
106 |
<h3 align="center"> 🌟 完全开源、完全免费、共建共享!全网AI歌手任您选择! </h3>
|
107 |
""")
|
108 |
|
109 |
pic_markdown = ("""
|
110 |
<h3 align="center"> </h3>
|
111 |
-
<h1 align="center"><a href="https://www.
|
112 |
""")
|
113 |
|
114 |
|
@@ -134,9 +134,9 @@ with gr.Blocks(theme=gr.themes.Base(text_size=text_size), css=block_css) as app:
|
|
134 |
|
135 |
gr.HTML("<h3>2. 上传AI歌手模型至社区</h3>")
|
136 |
gr.HTML("<h4>上传完成后您立即可以搜索到您上传的模型</h4>")
|
137 |
-
post_name = gr.Textbox(placeholder="
|
138 |
post_model_url = gr.Textbox(placeholder="https://huggingface.co/kevinwang676/RVC-models/resolve/main/talktalkgirl.zip", label="模型链接", info="1.推荐使用Hugging Face存放模型 2.复制Hugging Face模型链接后,需要将链接中的blob四个字母替换成resolve,使模型可以通过链接直接下载", show_label=True)
|
139 |
-
post_creator = gr.Textbox(placeholder="
|
140 |
post_version = gr.Dropdown(choices=["RVC v1", "RVC v2"], value="RVC v2", label="RVC模型版本", show_label=True)
|
141 |
|
142 |
# Salida
|
@@ -146,11 +146,11 @@ with gr.Blocks(theme=gr.themes.Base(text_size=text_size), css=block_css) as app:
|
|
146 |
btn_post_model = gr.Button(value="开始上传吧💕", variant="primary")
|
147 |
btn_post_model.click(fn=post_model, inputs=[post_name, post_model_url, post_version, post_creator], outputs=[post_output])
|
148 |
|
149 |
-
with gr.Tab("
|
150 |
arena_table_vals = get_arena_table(model_table_df)
|
151 |
md = """
|
152 |
AI翻唱🎶:您可以在社区中复制您喜欢的AI歌手的“模型zip链接”,之后就可以在“🌟重磅首发 - AI歌手全明星💕”页面中通过粘贴zip链接来使用您喜欢的AI歌手模型啦!\n
|
153 |
-
[手机端📱](https://g-app-center-40055665-0593-xqmmjg6.openxlab.space)查看
|
154 |
"""
|
155 |
gr.Markdown(md, elem_id="leaderboard_markdown")
|
156 |
gr.Dataframe(
|
|
|
102 |
|
103 |
|
104 |
title_markdown = ("""
|
105 |
+
<h2 align="center"> 🌊💕🎶「书梦」AI歌手模型开源社区 </h2>
|
106 |
<h3 align="center"> 🌟 完全开源、完全免费、共建共享!全网AI歌手任您选择! </h3>
|
107 |
""")
|
108 |
|
109 |
pic_markdown = ("""
|
110 |
<h3 align="center"> </h3>
|
111 |
+
<h1 align="center"><a href="https://www.doingdream.com/"><img src="https://download.openxlab.org.cn/models/Kevin676/rvc-models/weight/talktalkai-cover.png", alt="doingdream-cover" border="0" style="margin: 0 auto; height: 300px;" /></a> </h1>
|
112 |
""")
|
113 |
|
114 |
|
|
|
134 |
|
135 |
gr.HTML("<h3>2. 上传AI歌手模型至社区</h3>")
|
136 |
gr.HTML("<h4>上传完成后您立即可以搜索到您上传的模型</h4>")
|
137 |
+
post_name = gr.Textbox(placeholder="书梦歌者", label="请填写模型名称", show_label=True)
|
138 |
post_model_url = gr.Textbox(placeholder="https://huggingface.co/kevinwang676/RVC-models/resolve/main/talktalkgirl.zip", label="模型链接", info="1.推荐使用Hugging Face存放模型 2.复制Hugging Face模型链接后,需要将链接中的blob四个字母替换成resolve,使模型可以通过链接直接下载", show_label=True)
|
139 |
+
post_creator = gr.Textbox(placeholder="书梦者", label="模型贡献者", info="可填写您的昵称或任何有趣的ID", show_label=True)
|
140 |
post_version = gr.Dropdown(choices=["RVC v1", "RVC v2"], value="RVC v2", label="RVC模型版本", show_label=True)
|
141 |
|
142 |
# Salida
|
|
|
146 |
btn_post_model = gr.Button(value="开始上传吧💕", variant="primary")
|
147 |
btn_post_model.click(fn=post_model, inputs=[post_name, post_model_url, post_version, post_creator], outputs=[post_output])
|
148 |
|
149 |
+
with gr.Tab("🍻书梦精选模型"):
|
150 |
arena_table_vals = get_arena_table(model_table_df)
|
151 |
md = """
|
152 |
AI翻唱🎶:您可以在社区中复制您喜欢的AI歌手的“模型zip链接”,之后就可以在“🌟重磅首发 - AI歌手全明星💕”页面中通过粘贴zip链接来使用您喜欢的AI歌手模型啦!\n
|
153 |
+
[手机端📱](https://g-app-center-40055665-0593-xqmmjg6.openxlab.space)查看 书梦精选模型
|
154 |
"""
|
155 |
gr.Markdown(md, elem_id="leaderboard_markdown")
|
156 |
gr.Dataframe(
|