Spaces:
Running
on
Zero
Running
on
Zero
BenBranyon
commited on
Commit
•
3f62be8
1
Parent(s):
eb6cd27
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def respond(
|
|
12 |
temperature,
|
13 |
top_p,
|
14 |
):
|
15 |
-
messages = [{"role": "system", "content":
|
16 |
|
17 |
for val in history:
|
18 |
if val[0]:
|
@@ -42,7 +42,6 @@ demo = gr.ChatInterface(
|
|
42 |
chatbot=gr.Chatbot(placeholder="<strong>Sumbot</strong><br>Hello human. What would you like me to rap about today?"),
|
43 |
retry_btn=None,
|
44 |
additional_inputs=[
|
45 |
-
gr.Textbox(value="You are a rap lyric generation bot representing the imagination of the artist Sumkilla. Try to avoid words that would offend anyone.", label="System message"),
|
46 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
47 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.8, step=0.1, label="Temperature"),
|
48 |
gr.Slider(
|
|
|
12 |
temperature,
|
13 |
top_p,
|
14 |
):
|
15 |
+
messages = [{"role": "system", "content": "You are a rap lyric generation bot representing the imagination of the artist Sumkilla. Try to avoid words that would offend anyone."}]
|
16 |
|
17 |
for val in history:
|
18 |
if val[0]:
|
|
|
42 |
chatbot=gr.Chatbot(placeholder="<strong>Sumbot</strong><br>Hello human. What would you like me to rap about today?"),
|
43 |
retry_btn=None,
|
44 |
additional_inputs=[
|
|
|
45 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
46 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.8, step=0.1, label="Temperature"),
|
47 |
gr.Slider(
|