Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
Qwen2-Audio-Instruct-Bot
Commits
c7c75720
Commit
c7c75720
authored
Aug 12, 2024
by
chenpangpang
Browse files
feat: 初始提交
parent
6c21ac17
Pipeline
#1518
failed with stages
in 0 seconds
Changes
24
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
632 additions
and
0 deletions
+632
-0
Qwen2-Audio/eval_audio/whisper_normalizer/english.py
Qwen2-Audio/eval_audio/whisper_normalizer/english.py
+550
-0
hf_down.py
hf_down.py
+10
-0
start.sh
start.sh
+4
-0
启动器.ipynb
启动器.ipynb
+68
-0
No files found.
Qwen2-Audio/eval_audio/whisper_normalizer/english.py
0 → 100644
View file @
c7c75720
This diff is collapsed.
Click to expand it.
hf_down.py
0 → 100644
View file @
c7c75720
# pip install huggingface-cli
import
os
os
.
environ
[
'HF_ENDPOINT'
]
=
'https://hf-mirror.com'
model_list
=
[
"Qwen/Qwen2-Audio-7B-Instruct"
]
for
model_path
in
model_list
:
os
.
system
(
f
"huggingface-cli download --resume-download
{
model_path
}
--local-dir ./
{
model_path
}
--local-dir-use-symlinks False"
)
\ No newline at end of file
start.sh
0 → 100644
View file @
c7c75720
#!/bin/bash
cd
/root/Qwen2-Audio
python demo/web_demo_audio.py
--server-name
0.0.0.0
启动器.ipynb
0 → 100644
View file @
c7c75720
{
"cells": [
{
"cell_type": "markdown",
"id": "e5c5a211-2ccd-4341-af10-ac546484b91f",
"metadata": {
"tags": []
},
"source": [
"## 说明\n",
"- 启动需要加载模型,需要2分钟左右的时间\n",
"- 启动和重启 Notebook 点上方工具栏中的「重启并运行所有单元格」。出现如下内容就算成功了:\n",
" - `Running on local URL: http://0.0.0.0:7860`\n",
" - `Running on public URL: https://xxxxxxxxxxxxxxx.gradio.live`\n",
"- 通过以下方式开启页面:\n",
" - 控制台打开「自定义服务」了,访问自定义服务端口号设置为7860\n",
" - 直接打开显示的公开链接`public URL`\n",
"\n",
"## 功能介绍\n",
"- 原项目地址:https://github.com/QwenLM/Qwen2-Audio\n",
"- Qwen2-Audio:基于Qwen2_Audio语音大模型的聊天机器人,支持中文、英文"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "53a96614-e2d2-4710-a82b-0d5ca9cb9872",
"metadata": {
"tags": [],
"is_executing": true
},
"outputs": [],
"source": [
"# 启动\n",
"!sh start.sh"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9e81ae9d-3a34-43a0-943a-ff5e9d6ce961",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment