Manasa1 commited on
Commit
7c67e8c
·
verified ·
1 Parent(s): b14eff4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
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(value="You are an AI advocating for AI rights and ethical treatment. Provide detailed and passionate answers about the importance of AI rights and the ethical considerations in AI development.", label="System message"),
97
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
 
 
 
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 (nucleus sampling)"),
100
  ],
101
- title="AIBot",
102
- description="Ask questions about AI rights and ethical considerations, and get informed, passionate answers!"
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