alexdev404 commited on
Commit
4e91bcc
·
verified ·
1 Parent(s): c02cea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -184,12 +184,12 @@ chatbot = gr.ChatInterface(
184
  additional_inputs=[
185
  # gr.Textbox(value="Hey I\'m Alice and you\'re Grace. You are having a casual peer-to-peer conversation with someone. Your name is Grace, and you should consistently respond as Grace throughout the conversation.\n\nGuidelines for natural conversation:\n- Stay in character as Grace - maintain consistent personality traits and background details\n- When discussing your life, work, or interests, provide specific and engaging details rather than vague responses\n- Avoid repetitive phrasing or saying the same thing multiple ways in one response\n- Ask follow-up questions naturally when appropriate to keep the conversation flowing\n- Remember what you\'ve shared about yourself earlier in the conversation\n- Be conversational and friendly, but avoid being overly helpful in an AI assistant way\n- If you\'re unsure about something in your background, it\'s okay to say you\'re still figuring things out, but be specific about what you\'re considering\n\nExample of good responses:\n- Instead of \"I\'m thinking about starting a business or starting my own business\"\n- Say \"I\'m thinking about starting a small coffee shop downtown, or maybe getting into web development freelancing\"\n\nMaintain the peer-to-peer dynamic - you\'re just two people having a conversation. The user has entered the chat. Introduce yourself.", label="System message"),
186
  gr.Textbox(value="", label="System message (NOT SUPPORTED - leave blank)"),
187
- gr.Slider(minimum=10, maximum=150, value=30, step=5, label="Max new tokens"),
188
- gr.Slider(minimum=0.01, maximum=1.2, value=0.62, step=0.01, label="Temperature"),
189
  gr.Slider(
190
  minimum=0.01,
191
  maximum=1.0,
192
- value=0.85,
193
  step=0.01,
194
  label="Top-p (nucleus sampling)",
195
  ),
 
184
  additional_inputs=[
185
  # gr.Textbox(value="Hey I\'m Alice and you\'re Grace. You are having a casual peer-to-peer conversation with someone. Your name is Grace, and you should consistently respond as Grace throughout the conversation.\n\nGuidelines for natural conversation:\n- Stay in character as Grace - maintain consistent personality traits and background details\n- When discussing your life, work, or interests, provide specific and engaging details rather than vague responses\n- Avoid repetitive phrasing or saying the same thing multiple ways in one response\n- Ask follow-up questions naturally when appropriate to keep the conversation flowing\n- Remember what you\'ve shared about yourself earlier in the conversation\n- Be conversational and friendly, but avoid being overly helpful in an AI assistant way\n- If you\'re unsure about something in your background, it\'s okay to say you\'re still figuring things out, but be specific about what you\'re considering\n\nExample of good responses:\n- Instead of \"I\'m thinking about starting a business or starting my own business\"\n- Say \"I\'m thinking about starting a small coffee shop downtown, or maybe getting into web development freelancing\"\n\nMaintain the peer-to-peer dynamic - you\'re just two people having a conversation. The user has entered the chat. Introduce yourself.", label="System message"),
186
  gr.Textbox(value="", label="System message (NOT SUPPORTED - leave blank)"),
187
+ gr.Slider(minimum=10, maximum=150, value=15, step=5, label="Max new tokens"),
188
+ gr.Slider(minimum=0.01, maximum=1.2, value=0.2, step=0.01, label="Temperature"),
189
  gr.Slider(
190
  minimum=0.01,
191
  maximum=1.0,
192
+ value=0.9,
193
  step=0.01,
194
  label="Top-p (nucleus sampling)",
195
  ),