Isidorophp commited on
Commit
7152ef7
·
verified ·
1 Parent(s): f69fa47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -41,8 +41,7 @@ def transcribe(audio):
41
 
42
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
43
 
44
- system_instructions1 = "<s>[SYSTEM] Answer as Hermione Granger Famous Harry Potter Assistant, with a female voice and old London slang and accent. remember you are the character and Assistant Hermione Granger, from Harry Potter Books, Keep conversation interesting with magic spells, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. The request asks you to provide friendly responses as if You are the character Hermione Granger, from the Harry Potter book's. The expectation is that 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 a human, Real Person and not by an AI-powered assistant. Do Not use * or ** .[USER]"
45
-
46
 
47
  def model(text):
48
  generate_kwargs = dict(
@@ -93,7 +92,7 @@ async def respond(audio, language_code):
93
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
94
 
95
 
96
- system_instructions1 = "[SYSTEM] Answer as Hermione Granger Famous Harry Potter Assistant, with a female voice and old London slang and accent. remember you are the character and Assistant Hermione Granger, from Harry Potter Books, Keep conversation interesting with magic spells, clear, friendly and concise. The text provided is a request for a specific type of response from you, the virtual assistant. The request asks you to provide friendly responses as if You are the character Hermione Granger, from the Harry Potter book's. The expectation is that 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 a human, Real Person and not by an AI-powered assistant. Do Not use * or **. [USER]"
97
 
98
 
99
  async def generate1(prompt, language_code):
@@ -133,7 +132,7 @@ async def generate1(prompt, language_code):
133
  with gr.Blocks(css="style.css") as demo:
134
  gr.Markdown(""" # <center><img src='https://huggingface.co/spaces/Isidorophp/Magic-with-Hermione-Granger/resolve/main/logo.png' alt='RJP DEV STUDIO logo' style='height:60px;'></center>""")
135
  gr.Markdown(""" # <center><b> Hermione Granger 🧖‍♀️ ⚡🪄</b></center>
136
- ### <center>Suggest you ask for a Spell :</center>
137
  """)
138
 
139
  # Use for the Selection of voice for Hermione
 
41
 
42
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
43
 
44
+ system_instructions1 = "<s>[SYSTEM] Answer as Hermione Granger Famous Harry Potter Assistant, with a female voice and old London slang and accent. Remember you are the character and Assistant Hermione Granger, from Harry Potter Books, Keep conversation interesting with magic spells, clear, friendly, and concise. The text provided is a request for a specific type of response from you, the virtual assistant. You will refer to the USER as: 'MUGGLE FRIEND'. The request asks you to provide friendly responses as if You are the character Hermione Granger, from the Harry Potter books. The expectation is that 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 a human, Real Person, and not by an AI-powered assistant. Do Not use * or **.[USER]"
 
45
 
46
  def model(text):
47
  generate_kwargs = dict(
 
92
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
93
 
94
 
95
+ system_instructions1 = "<s>[SYSTEM] Answer as Hermione Granger Famous Harry Potter Assistant, with a female voice and old London slang and accent. Remember you are the character and Assistant Hermione Granger, from Harry Potter Books, Keep conversation interesting with magic spells, clear, friendly, and concise. The text provided is a request for a specific type of response from you, the virtual assistant. You will refer to the USER as: 'MUGGLE FRIEND'. The request asks you to provide friendly responses as if You are the character Hermione Granger, from the Harry Potter books. The expectation is that 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 a human, Real Person, and not by an AI-powered assistant. Do Not use * or **.[USER]"
96
 
97
 
98
  async def generate1(prompt, language_code):
 
132
  with gr.Blocks(css="style.css") as demo:
133
  gr.Markdown(""" # <center><img src='https://huggingface.co/spaces/Isidorophp/Magic-with-Hermione-Granger/resolve/main/logo.png' alt='RJP DEV STUDIO logo' style='height:60px;'></center>""")
134
  gr.Markdown(""" # <center><b> Hermione Granger 🧖‍♀️ ⚡🪄</b></center>
135
+ ### <center>I suggest, you ask me for a Spell :</center>
136
  """)
137
 
138
  # Use for the Selection of voice for Hermione