Spaces:
Running
Running
Update app.py
Browse files
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
|
12 |
-
### <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 '
|
29 |
|
30 |
async def generate1(prompt):
|
31 |
generate_kwargs = dict(
|
32 |
temperature=0.6,
|
33 |
-
max_new_tokens=
|
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 '
|
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(
|