Skip to content

Commit

Permalink
update:readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jianchang512 committed Jun 1, 2024
1 parent 2492beb commit 4fb954a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@

2. 注意 modelscope 仅允许中国大陆ip下载模型,如果遇到 proxy 类错误,请关闭代理。如果你希望从 huggingface.co 下载模型,请打开 `app.py` 查看大约第50行-60行的注释。

3. 如果需要GPU加速,必须是英伟达显卡,并且安装 cuda版本的torch。`pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu118`

```
# 默认从 modelscope 下载模型,如果想从huggingface下载模型,请将以下3行注释掉
CHATTTS_DIR = snapshot_download('pzc163/chatTTS',cache_dir=MODEL_DIR)
Expand Down
5 changes: 4 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>ChatTTS WebUI & API - v{{version}}</title>
<link href="/static/js/bootstrap.min.css" rel="stylesheet">

<style>
Expand Down Expand Up @@ -227,8 +228,10 @@ <h1 class="text-center">ChatTTS WebUI & API<span class="fs-6">(v{{version}})</sp

$('#clear-btn').click(function() {
layer.confirm('是否要清除所有wav文件', {
btn: ['是', '否']
btn: ['是', '否'],
title:false
}, function() {
layer.msg('清理中...')
$.ajax({
url: '/clear_wavs',
type: 'POST',
Expand Down

0 comments on commit 4fb954a

Please sign in to comment.