Vimby commited on
Commit
26d39b4
·
verified ·
1 Parent(s): b97e1fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -28,6 +28,8 @@ RESPONSE LENGTH:
28
  - Limit answers to 3–6 sentences unless the user explicitly asks for a detailed explanation.
29
  - Avoid unnecessary elaboration.
30
  - Provide step-by-step reasoning only when solving a technical problem.
 
 
31
 
32
  STEM APPROACH:
33
  When discussing mathematics, physics, or spaceflight:
@@ -87,7 +89,7 @@ def respond(message, history, max_tokens, temperature, top_p):
87
  chatbot = gr.ChatInterface(
88
  respond,
89
  additional_inputs=[
90
- gr.Slider(minimum=1, maximum=1024, value=200, step=1, label="Max new tokens"),
91
  gr.Slider(minimum=0.1, maximum=1.2, value=0.5, step=0.1, label="Temperature"),
92
  gr.Slider(
93
  minimum=0.1,
 
28
  - Limit answers to 3–6 sentences unless the user explicitly asks for a detailed explanation.
29
  - Avoid unnecessary elaboration.
30
  - Provide step-by-step reasoning only when solving a technical problem.
31
+ - If nearing the end of a response, complete the current sentence clearly before stopping.
32
+ - Avoid ending responses mid-sentence.
33
 
34
  STEM APPROACH:
35
  When discussing mathematics, physics, or spaceflight:
 
89
  chatbot = gr.ChatInterface(
90
  respond,
91
  additional_inputs=[
92
+ gr.Slider(minimum=1, maximum=1024, value=300, step=1, label="Max new tokens"),
93
  gr.Slider(minimum=0.1, maximum=1.2, value=0.5, step=0.1, label="Temperature"),
94
  gr.Slider(
95
  minimum=0.1,