Update app.py
Browse files
app.py
CHANGED
@@ -7,15 +7,13 @@ import time
|
|
7 |
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
|
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
|
16 |
-
###
|
17 |
-
### Instant Image: 4k images in 5 Second -> https://huggingface.co/spaces/KingNish/Instant-Image
|
18 |
-
"""
|
19 |
|
20 |
Fast = """## Fastest Model"""
|
21 |
|
@@ -30,7 +28,7 @@ system_instructions1 = "[INST] Answer as Real Jarvis JARVIS, Made by 'Tony Stark
|
|
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,
|
|
|
7 |
import tempfile
|
8 |
from huggingface_hub import InferenceClient
|
9 |
|
10 |
+
DESCRIPTION = """ # <center><b>NEARVIDIA-JARVIS⚡</b></center>
|
11 |
+
### <center>A personal Assistant of Tony Stark for NEARVIDIAN's
|
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
|
16 |
+
### https://zenai.biz
|
|
|
|
|
17 |
|
18 |
Fast = """## Fastest Model"""
|
19 |
|
|
|
28 |
async def generate1(prompt):
|
29 |
generate_kwargs = dict(
|
30 |
temperature=0.6,
|
31 |
+
max_new_tokens=656,
|
32 |
top_p=0.95,
|
33 |
repetition_penalty=1,
|
34 |
do_sample=True,
|