Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ from tools.schema import ServeMessage, ServeTextPart, ServeVQPart
|
|
| 15 |
os.makedirs("checkpoints", exist_ok=True)
|
| 16 |
snapshot_download(repo_id="fishaudio/fish-speech-1.4", local_dir="./checkpoints/fish-speech-1.4")
|
| 17 |
snapshot_download(repo_id="fishaudio/fish-agent-v0.1-3b", local_dir="./checkpoints/fish-agent-v0.1-3b")
|
|
|
|
| 18 |
|
| 19 |
class ChatState:
|
| 20 |
def __init__(self):
|
|
@@ -169,7 +170,7 @@ def create_demo():
|
|
| 169 |
)
|
| 170 |
sys_text_input = gr.Textbox(
|
| 171 |
label="What is your assistant's role?",
|
| 172 |
-
value=
|
| 173 |
type="text",
|
| 174 |
)
|
| 175 |
audio_input = gr.Audio(
|
|
|
|
| 15 |
os.makedirs("checkpoints", exist_ok=True)
|
| 16 |
snapshot_download(repo_id="fishaudio/fish-speech-1.4", local_dir="./checkpoints/fish-speech-1.4")
|
| 17 |
snapshot_download(repo_id="fishaudio/fish-agent-v0.1-3b", local_dir="./checkpoints/fish-agent-v0.1-3b")
|
| 18 |
+
SYSTEM_PROMPT = 'You are a voice assistant created by Fish Audio, offering end-to-end voice interaction for a seamless user experience. You are required to first transcribe the user\'s speech, then answer it in the following format: "Question: [USER_SPEECH]\n\nResponse: [YOUR_RESPONSE]\n"。You are required to use the following voice in this conversation.'
|
| 19 |
|
| 20 |
class ChatState:
|
| 21 |
def __init__(self):
|
|
|
|
| 170 |
)
|
| 171 |
sys_text_input = gr.Textbox(
|
| 172 |
label="What is your assistant's role?",
|
| 173 |
+
value=SYSTEM_PROMPT,
|
| 174 |
type="text",
|
| 175 |
)
|
| 176 |
audio_input = gr.Audio(
|