BenBranyon
commited on
Commit
•
d2880e2
1
Parent(s):
a8f4710
Update app.py
Browse files
app.py
CHANGED
@@ -36,15 +36,13 @@ def respond(
|
|
36 |
response += token
|
37 |
yield response
|
38 |
|
39 |
-
|
40 |
-
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
41 |
-
"""
|
42 |
demo = gr.ChatInterface(
|
43 |
respond,
|
44 |
additional_inputs=[
|
45 |
-
gr.Textbox(value="You are a
|
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.
|
48 |
gr.Slider(
|
49 |
minimum=0.1,
|
50 |
maximum=1.0,
|
|
|
36 |
response += token
|
37 |
yield response
|
38 |
|
39 |
+
|
|
|
|
|
40 |
demo = gr.ChatInterface(
|
41 |
respond,
|
42 |
additional_inputs=[
|
43 |
+
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"),
|
44 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
45 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.8, step=0.1, label="Temperature"),
|
46 |
gr.Slider(
|
47 |
minimum=0.1,
|
48 |
maximum=1.0,
|