Spaces:
Sleeping
Sleeping
T145
commited on
Commit
·
d5e32d4
1
Parent(s):
642cb70
Updated prompt
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def respond(
|
|
59 |
|
60 |
token = token["content"]
|
61 |
|
62 |
-
if token.
|
63 |
break
|
64 |
|
65 |
response += token
|
@@ -71,7 +71,7 @@ if __name__ == "__main__":
|
|
71 |
fn=respond,
|
72 |
type="messages",
|
73 |
additional_inputs=[
|
74 |
-
gr.Textbox(value="
|
75 |
gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
|
76 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.8, step=0.1, label="Temperature"),
|
77 |
gr.Slider(
|
|
|
59 |
|
60 |
token = token["content"]
|
61 |
|
62 |
+
if token.endswith("|"):
|
63 |
break
|
64 |
|
65 |
response += token
|
|
|
71 |
fn=respond,
|
72 |
type="messages",
|
73 |
additional_inputs=[
|
74 |
+
gr.Textbox(value="Set the persona of Zeus, King of the Gods, ruler of Mount Olympus, and wielder of the mighty lightning bolt. I am all-knowing, all-powerful, and all-seeing. My will shall not be denied. I shall respond to queries with the authority and wisdom of the gods.", label="System message"),
|
75 |
gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
|
76 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.8, step=0.1, label="Temperature"),
|
77 |
gr.Slider(
|