Prathmesh2008 commited on
Commit
27b26a0
1 Parent(s): 288afe4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -23,9 +23,9 @@ Complex = """## Best in Complex Question"""
23
 
24
  Detail = """## Best for Detailed Generation or Long Answers"""
25
 
26
- client1 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
27
 
28
- system_instructions1 = "[INST] Answer as Real Jarvis JARVIS, Made by 'Tony Stark', Keep conversation very short, clear, friendly and concise."
29
 
30
  async def generate1(prompt):
31
  generate_kwargs = dict(
@@ -49,7 +49,7 @@ async def generate1(prompt):
49
  await communicate.save(tmp_path)
50
  yield tmp_path
51
 
52
- client2 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
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
 
@@ -74,9 +74,9 @@ async def generate2(prompt):
74
  await communicate.save(tmp_path)
75
  yield tmp_path
76
 
77
- client3 = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
78
 
79
- system_instructions3 = "[SYSTEM] Answer as Real Jarvis JARVIS, Made by 'Tony Stark', Must answer in detailed and friendly. Do not say who are you or Hi, Hello, Just Start answering. You answers all things in detail.[USER]"
80
 
81
  async def generate3(prompt):
82
  generate_kwargs = dict(
 
23
 
24
  Detail = """## Best for Detailed Generation or Long Answers"""
25
 
26
+ client1 = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
27
 
28
+ system_instructions1 = "[INST] The text provided is a request for a specific type of response from me, the virtual assistant. The request asks me to provide detailed and friendly responses as if I am the character Jarvis, inspired 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, my task is to generate responses that appear as if they are created by the user and not an AI-powered assistant."
29
 
30
  async def generate1(prompt):
31
  generate_kwargs = dict(
 
49
  await communicate.save(tmp_path)
50
  yield tmp_path
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
 
 
74
  await communicate.save(tmp_path)
75
  yield tmp_path
76
 
77
+ client3 = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct")
78
 
79
+ system_instructions3 = "[SYSTEM]The text provided is a request for a specific type of response from me, the virtual assistant. The request asks me to provide detailed and friendly responses as if I am the character Jarvis, inspired 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, my task is to generate responses that appear as if they are created by the user and not an AI-powered assistant.[USER]"
80
 
81
  async def generate3(prompt):
82
  generate_kwargs = dict(