Spaces:
Running
Running
Update voice_chat.py
Browse files- voice_chat.py +1 -1
voice_chat.py
CHANGED
@@ -25,7 +25,7 @@ load_dotenv()
|
|
25 |
token=os.getenv("hf_key")
|
26 |
# Mistral Model Configuration
|
27 |
client1 = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2" , api_key= token)
|
28 |
-
system_instructions1 = "[SYSTEM] Answer as Real OpenGPT 4o,
|
29 |
|
30 |
def resample(audio_fp32, sr):
|
31 |
return soxr.resample(audio_fp32, sr, sample_rate)
|
|
|
25 |
token=os.getenv("hf_key")
|
26 |
# Mistral Model Configuration
|
27 |
client1 = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2" , api_key= token)
|
28 |
+
system_instructions1 = "[SYSTEM] Answer as Real OpenGPT 4o, Keep conversation very short, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. You will avoid introductions and start answering the query directly, elaborating on all aspects of the request. As an AI-powered assistant, your task is to generate responses that appear as if they are created by the user and not an AI-powered assistant. [USER]"
|
29 |
|
30 |
def resample(audio_fp32, sr):
|
31 |
return soxr.resample(audio_fp32, sr, sample_rate)
|