Spaces:
Running
on
Zero
Running
on
Zero
Daemontatox
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -14,13 +14,13 @@ import gradio as gr
|
|
14 |
from threading import Thread
|
15 |
|
16 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
17 |
-
MODEL = "Daemontatox/
|
18 |
|
19 |
TITLE = "<h1><center>Reason</center></h1>"
|
20 |
|
21 |
PLACEHOLDER = """
|
22 |
<center>
|
23 |
-
<p>
|
24 |
</center>
|
25 |
"""
|
26 |
|
@@ -163,7 +163,7 @@ If you need a new Tag create on and use it .""",
|
|
163 |
minimum=0,
|
164 |
maximum=1,
|
165 |
step=0.1,
|
166 |
-
value=0
|
167 |
label="Temperature",
|
168 |
render=False,
|
169 |
),
|
@@ -171,7 +171,7 @@ If you need a new Tag create on and use it .""",
|
|
171 |
minimum=128,
|
172 |
maximum=128000,
|
173 |
step=1,
|
174 |
-
value=
|
175 |
label="Max new tokens",
|
176 |
render=False,
|
177 |
),
|
@@ -195,16 +195,15 @@ If you need a new Tag create on and use it .""",
|
|
195 |
minimum=0.0,
|
196 |
maximum=2.0,
|
197 |
step=0.1,
|
198 |
-
value=
|
199 |
label="Repetition penalty",
|
200 |
render=False,
|
201 |
),
|
202 |
],
|
203 |
-
examples=[
|
204 |
-
["
|
205 |
-
["
|
206 |
-
["
|
207 |
-
["Show me a code snippet of a website's sticky header in CSS and JavaScript."],
|
208 |
],
|
209 |
cache_examples=False,
|
210 |
)
|
|
|
14 |
from threading import Thread
|
15 |
|
16 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
17 |
+
MODEL = "Daemontatox/SphinX"
|
18 |
|
19 |
TITLE = "<h1><center>Reason</center></h1>"
|
20 |
|
21 |
PLACEHOLDER = """
|
22 |
<center>
|
23 |
+
<p>Ask me Anything !!</p>
|
24 |
</center>
|
25 |
"""
|
26 |
|
|
|
163 |
minimum=0,
|
164 |
maximum=1,
|
165 |
step=0.1,
|
166 |
+
value=1.0,
|
167 |
label="Temperature",
|
168 |
render=False,
|
169 |
),
|
|
|
171 |
minimum=128,
|
172 |
maximum=128000,
|
173 |
step=1,
|
174 |
+
value= 8192,
|
175 |
label="Max new tokens",
|
176 |
render=False,
|
177 |
),
|
|
|
195 |
minimum=0.0,
|
196 |
maximum=2.0,
|
197 |
step=0.1,
|
198 |
+
value=0.0,
|
199 |
label="Repetition penalty",
|
200 |
render=False,
|
201 |
),
|
202 |
],
|
203 |
+
examples=["What is meant by a Singularity? "],
|
204 |
+
["Explain the theory of Relativty"],
|
205 |
+
["Explain how do you think"],
|
206 |
+
["Explain how mamba2 structure LLMs work and how do they differ from transformers? "],
|
|
|
207 |
],
|
208 |
cache_examples=False,
|
209 |
)
|