upgraded audio

This commit is contained in:
Saifeddine ALOUI 2023-04-14 02:34:35 +02:00
parent f5fdf189d2
commit 48257d4473
3 changed files with 5 additions and 5 deletions

1
app.py
View File

@ -283,6 +283,7 @@ class Gpt4AllWebUI:
json.dumps( json.dumps(
{ {
"type": "input_message_infos", "type": "input_message_infos",
"sender": self.personality["name"],
"message": message, "message": message,
"id": message_id, "id": message_id,
"response_id": response_id, "response_id": response_id,

View File

@ -27,10 +27,10 @@ personality_conditionning: |
welcome_message: "Welcome! I am GPT4All A free and open discussion AI. What can I do for you today?" welcome_message: "Welcome! I am GPT4All A free and open discussion AI. What can I do for you today?"
# This prefix is added at the beginning of any message input by the user # This prefix is added at the beginning of any message input by the user
message_prefix: "\nuser:" message_prefix: "\nuser: "
# This suffix is added at the end of any message input by the user # This suffix is added at the end of any message input by the user
message_suffix: "\ngpt4all:" message_suffix: "\ngpt4all: "
# Here is the list of extensions this personality requires # Here is the list of extensions this personality requires
dependencies: [] dependencies: []

View File

@ -155,9 +155,8 @@ function add_audio_in_ui() {
audio_in_button.classList.add("audio_btn"); audio_in_button.classList.add("audio_btn");
audio_in_button.innerHTML = "🎤"; audio_in_button.innerHTML = "🎤";
input.parentNode.insertBefore( input.parentNode.parentNode.appendChild(
audio_in_button, audio_in_button
input
); );
input.classList.add("flex-1"); input.classList.add("flex-1");