Spaces:
Running
Running
Update webui.py
Browse files
webui.py
CHANGED
@@ -178,11 +178,7 @@ def refine_text(text: str, prompt: str):
|
|
178 |
return refiner.refine_text(text, prompt=prompt)
|
179 |
|
180 |
|
181 |
-
|
182 |
-
with open("README.md", "r", encoding="utf-8") as file:
|
183 |
-
content = file.read()
|
184 |
-
content = content[content.index("# 🗣️ ChatTTS-Forge") :]
|
185 |
-
return content
|
186 |
|
187 |
|
188 |
# 演示示例文本
|
@@ -773,9 +769,7 @@ def create_long_content_tab(ssml_input, tabs):
|
|
773 |
send_btn.click(change_tab, inputs=[], outputs=[tabs])
|
774 |
|
775 |
|
776 |
-
|
777 |
-
readme_content = read_local_readme()
|
778 |
-
gr.Markdown(readme_content)
|
779 |
|
780 |
|
781 |
def create_interface():
|
@@ -819,8 +813,7 @@ def create_interface():
|
|
819 |
with gr.TabItem("Long Text"):
|
820 |
create_long_content_tab(ssml_input, tabs=tabs)
|
821 |
|
822 |
-
|
823 |
-
create_readme_tab()
|
824 |
|
825 |
gr.Markdown(
|
826 |
"此项目基于 [RJLAPI](https://raojialong.love) "
|
|
|
178 |
return refiner.refine_text(text, prompt=prompt)
|
179 |
|
180 |
|
181 |
+
|
|
|
|
|
|
|
|
|
182 |
|
183 |
|
184 |
# 演示示例文本
|
|
|
769 |
send_btn.click(change_tab, inputs=[], outputs=[tabs])
|
770 |
|
771 |
|
772 |
+
|
|
|
|
|
773 |
|
774 |
|
775 |
def create_interface():
|
|
|
813 |
with gr.TabItem("Long Text"):
|
814 |
create_long_content_tab(ssml_input, tabs=tabs)
|
815 |
|
816 |
+
|
|
|
817 |
|
818 |
gr.Markdown(
|
819 |
"此项目基于 [RJLAPI](https://raojialong.love) "
|