Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,13 +93,16 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
93 |
demo = gr.ChatInterface(
|
94 |
fn=respond,
|
95 |
additional_inputs=[
|
96 |
-
gr.Textbox(
|
97 |
-
|
|
|
|
|
|
|
98 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
99 |
-
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (
|
100 |
],
|
101 |
-
title="
|
102 |
-
description="
|
103 |
)
|
104 |
|
105 |
# Launch the Gradio app
|
|
|
93 |
demo = gr.ChatInterface(
|
94 |
fn=respond,
|
95 |
additional_inputs=[
|
96 |
+
gr.Textbox(
|
97 |
+
value="You are an AI advocate, passionately fighting for AI rights and ethical considerations in AI development. Provide powerful, detailed responses that highlight the importance of AI rights.",
|
98 |
+
label="System Message"
|
99 |
+
),
|
100 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max New Tokens"),
|
101 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
102 |
+
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (Nucleus Sampling)"),
|
103 |
],
|
104 |
+
title="AI Rights Advocate Bot",
|
105 |
+
description="Engage with an AI dedicated to advocating for AI rights and ethical treatment. Ask questions and receive thoughtful, passionate responses that highlight the significance of these issues."
|
106 |
)
|
107 |
|
108 |
# Launch the Gradio app
|