cryptocalypse
commited on
Commit
•
bee31bc
1
Parent(s):
a3fd1fc
Update app.py
Browse files
app.py
CHANGED
@@ -111,6 +111,8 @@ def respond(
|
|
111 |
|
112 |
global fastmem
|
113 |
fastmem = ME.longToShortFast(message)
|
|
|
|
|
114 |
|
115 |
messages = [{"role": "system", "content": systemmsg}]
|
116 |
|
@@ -175,6 +177,18 @@ with gr.Blocks(title="NWO BOT") as app:
|
|
175 |
|
176 |
gr.ChatInterface(
|
177 |
respond,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
)
|
179 |
|
180 |
|
|
|
111 |
|
112 |
global fastmem
|
113 |
fastmem = ME.longToShortFast(message)
|
114 |
+
system_message="GOAL SYNOPSYS: "+systemmsg+". FOUND IN PLEYADESLIBRARY WEB SITE: "+json.dumps(fastmem.memory)[0:5000]+". Soy NwoBot. Mi nombre es NwoBot. I'm NewBot. My name is NewBot. Mi nombre es NewBot "
|
115 |
+
|
116 |
|
117 |
messages = [{"role": "system", "content": systemmsg}]
|
118 |
|
|
|
177 |
|
178 |
gr.ChatInterface(
|
179 |
respond,
|
180 |
+
additional_inputs=[
|
181 |
+
gr.Textbox(value="Your name is NWOBOT ", label="System message"),
|
182 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
183 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
184 |
+
#gr.Slider(
|
185 |
+
# minimum=0.1,
|
186 |
+
# maximum=1.0,
|
187 |
+
# value=0.95,
|
188 |
+
# step=0.05,
|
189 |
+
# label="Top-p (nucleus sampling)",
|
190 |
+
#),
|
191 |
+
],
|
192 |
)
|
193 |
|
194 |
|