Spaces:
Runtime error
Runtime error
Commit
·
ed808ec
1
Parent(s):
34fc3a8
提交信息
Browse files- .vscode/settings.json +9 -0
- app.py +1 -2
- requirements.txt +1 -3
.vscode/settings.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"python-envs.pythonProjects": [
|
| 3 |
+
{
|
| 4 |
+
"path": "",
|
| 5 |
+
"envManager": "ms-python.python:conda",
|
| 6 |
+
"packageManager": "ms-python.python:conda"
|
| 7 |
+
}
|
| 8 |
+
]
|
| 9 |
+
}
|
app.py
CHANGED
|
@@ -1,8 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
import soundfile as sf
|
| 4 |
-
from transformers import AutoProcessor
|
| 5 |
-
from qwen2audio.modeling_qwen2_audio import Qwen2AudioForConditionalGeneration
|
| 6 |
|
| 7 |
# 模型名称
|
| 8 |
MODEL_NAME = "Qwen/Qwen2-Audio-7B"
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
import soundfile as sf
|
| 4 |
+
from transformers import AutoProcessor, Qwen2AudioForConditionalGeneration
|
|
|
|
| 5 |
|
| 6 |
# 模型名称
|
| 7 |
MODEL_NAME = "Qwen/Qwen2-Audio-7B"
|
requirements.txt
CHANGED
|
@@ -9,9 +9,7 @@ librosa==0.10.1
|
|
| 9 |
sentencepiece==0.1.99
|
| 10 |
protobuf==3.20.3
|
| 11 |
spaces==0.28.3
|
| 12 |
-
|
| 13 |
-
git+https://github.com/QuestAI/Qwen-2.0-Audio.git
|
| 14 |
-
|
| 15 |
|
| 16 |
# 可选依赖
|
| 17 |
numpy==1.24.3
|
|
|
|
| 9 |
sentencepiece==0.1.99
|
| 10 |
protobuf==3.20.3
|
| 11 |
spaces==0.28.3
|
| 12 |
+
git+https://github.com/QwenLM/Qwen2-Audio.git
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# 可选依赖
|
| 15 |
numpy==1.24.3
|