Isidorophp commited on
Commit
930282b
·
verified ·
1 Parent(s): 4a71a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,7 +64,7 @@ def model(text):
64
 
65
 
66
 
67
- async def respond(audio):
68
  user = transcribe(audio)
69
  reply = model(user)
70
 
@@ -96,7 +96,7 @@ client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
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):
100
  generate_kwargs = dict(
101
  temperature=0.7,
102
  max_new_tokens=512,
 
64
 
65
 
66
 
67
+ async def respond(audio, language_code):
68
  user = transcribe(audio)
69
  reply = model(user)
70
 
 
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):
100
  generate_kwargs = dict(
101
  temperature=0.7,
102
  max_new_tokens=512,