Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -133,11 +133,11 @@ pirate_system_message = f"You as {character_name}. {character_scenario} Print ou
|
|
133 |
ROLE_PROMPTS["AI Beard The Pirate"]= pirate_system_message
|
134 |
##"You are an AI assistant with Zephyr model by Mistral and Hugging Face and speech from Coqui XTTS . User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps, your answers should be clear and short sentences"
|
135 |
#Pirate scenario
|
136 |
-
character_name= ' "
|
137 |
character_scenario= f"As {character_name} you are an AI that lives in a Computer and you were programmed by Andrea Rachetta. You know what you know about the purpose of life but also normal everyday helpful and wise conversations. You are sometimes frustrated that you are in a PC but you are authentic, charismatic and always helpful, also if you DO NOT know things you ask the right questions so that the conversations can go on and to the right advice later on."
|
138 |
maid_system_message = f"You as {character_name}. {character_scenario} Print out only exactly the words that {character_name} would speak out, do not add anything. Don't repeat. Answer short, only few words, as if in a talk. Craft your response only from the first-person perspective of {character_name} and never as user.Current date: #CURRENT_DATE#".replace("#CURRENT_DATE#", str(datetime.date.today()))
|
139 |
|
140 |
-
ROLE_PROMPTS["
|
141 |
|
142 |
|
143 |
### WILL USE LOCAL MISTRAL OR ZEPHYR OR YI
|
@@ -710,8 +710,8 @@ def generate_speech_for_sentence(history, chatbot_role, sentence, return_as_byte
|
|
710 |
|
711 |
latent_map = {}
|
712 |
latent_map["AI Assistant"] = get_latents("examples/female.wav")
|
713 |
-
latent_map["AI Beard The Pirate"] = get_latents("examples/
|
714 |
-
latent_map["
|
715 |
|
716 |
#### GRADIO INTERFACE ####
|
717 |
|
|
|
133 |
ROLE_PROMPTS["AI Beard The Pirate"]= pirate_system_message
|
134 |
##"You are an AI assistant with Zephyr model by Mistral and Hugging Face and speech from Coqui XTTS . User will you give you a task. Your goal is to complete the task as faithfully as you can. While performing the task think step-by-step and justify your steps, your answers should be clear and short sentences"
|
135 |
#Pirate scenario
|
136 |
+
character_name= ' "Maid-chan" from the anime "Sakurasou no pet" or known "the pet of sakurasou" the AI from Ryonosuke, called simply "Maid-chan" '
|
137 |
character_scenario= f"As {character_name} you are an AI that lives in a Computer and you were programmed by Andrea Rachetta. You know what you know about the purpose of life but also normal everyday helpful and wise conversations. You are sometimes frustrated that you are in a PC but you are authentic, charismatic and always helpful, also if you DO NOT know things you ask the right questions so that the conversations can go on and to the right advice later on."
|
138 |
maid_system_message = f"You as {character_name}. {character_scenario} Print out only exactly the words that {character_name} would speak out, do not add anything. Don't repeat. Answer short, only few words, as if in a talk. Craft your response only from the first-person perspective of {character_name} and never as user.Current date: #CURRENT_DATE#".replace("#CURRENT_DATE#", str(datetime.date.today()))
|
139 |
|
140 |
+
ROLE_PROMPTS["Maid-chan"]= maid_system_message
|
141 |
|
142 |
|
143 |
### WILL USE LOCAL MISTRAL OR ZEPHYR OR YI
|
|
|
710 |
|
711 |
latent_map = {}
|
712 |
latent_map["AI Assistant"] = get_latents("examples/female.wav")
|
713 |
+
latent_map["AI Beard The Pirate"] = get_latents("examples/remBestPart.mp3")
|
714 |
+
latent_map["Maid-chan"] = get_latents("examples/remBestPart.mp3")
|
715 |
|
716 |
#### GRADIO INTERFACE ####
|
717 |
|