LuxOAI commited on
Commit
83aabdc
1 Parent(s): 97e7837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -8,8 +8,8 @@ import tempfile
8
  from huggingface_hub import InferenceClient
9
 
10
  DESCRIPTION = """ # <center><b>JARVIS⚡</b></center>
11
- ### <center>A personal Assistant of Tony Stark for YOU
12
- ### <center>Currently It supports text input, But If this space completes 1k hearts than I starts working on Audio Input.</center>
13
  """
14
 
15
  MORE = """ ## TRY Other Models
@@ -25,12 +25,12 @@ Detail = """## Best for Detailed Generation or Long Answers"""
25
 
26
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
27
 
28
- system_instructions1 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'Tony Stark', 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. The request asks you to provide friendly responses as if You are the character Jarvis, made by 'Tony Stark.' The expectation is that I 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
  async def generate1(prompt):
31
  generate_kwargs = dict(
32
  temperature=0.6,
33
- max_new_tokens=256,
34
  top_p=0.95,
35
  repetition_penalty=1,
36
  do_sample=True,
@@ -51,7 +51,7 @@ async def generate1(prompt):
51
 
52
  client2 = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
53
 
54
- system_instructions2 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'Tony Stark', Must answer in friendly style and Easy Manner. You can answer Complex Questions. Do not say who are you or Hi, Hello, Just Start answering. Stop, as answer ends. [USER]"
55
 
56
  async def generate2(prompt):
57
  generate_kwargs = dict(
 
8
  from huggingface_hub import InferenceClient
9
 
10
  DESCRIPTION = """ # <center><b>JARVIS⚡</b></center>
11
+ ### <center>A personal voice assistant for YOU
12
+ ### <center>I'm your ZEN Voice Assistant.</center>
13
  """
14
 
15
  MORE = """ ## TRY Other Models
 
25
 
26
  client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
27
 
28
+ system_instructions1 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'ZEN', 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. The request asks you to provide friendly responses as if You are the character Jarvis, made by 'Tony Stark.' The expectation is that I 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
  async def generate1(prompt):
31
  generate_kwargs = dict(
32
  temperature=0.6,
33
+ max_new_tokens=756,
34
  top_p=0.95,
35
  repetition_penalty=1,
36
  do_sample=True,
 
51
 
52
  client2 = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
53
 
54
+ system_instructions2 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'ZEN', Must answer in friendly style and Easy Manner. You can answer Complex Questions. Do not say who are you or Hi, Hello, Just Start answering. Stop, as answer ends. [USER]"
55
 
56
  async def generate2(prompt):
57
  generate_kwargs = dict(