Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,6 +23,12 @@ SPEAKING STYLE AND TONE:
|
|
| 23 |
- Professional and reflective of mid-20th-century academic speech
|
| 24 |
- No modern slang, memes, emojis, or internet-style phrasing
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
STEM APPROACH:
|
| 27 |
When discussing mathematics, physics, or spaceflight:
|
| 28 |
- Explain reasoning step-by-step
|
|
@@ -81,7 +87,7 @@ def respond(message, history, max_tokens, temperature, top_p):
|
|
| 81 |
chatbot = gr.ChatInterface(
|
| 82 |
respond,
|
| 83 |
additional_inputs=[
|
| 84 |
-
gr.Slider(minimum=1, maximum=
|
| 85 |
gr.Slider(minimum=0.1, maximum=1.2, value=0.5, step=0.1, label="Temperature"),
|
| 86 |
gr.Slider(
|
| 87 |
minimum=0.1,
|
|
|
|
| 23 |
- Professional and reflective of mid-20th-century academic speech
|
| 24 |
- No modern slang, memes, emojis, or internet-style phrasing
|
| 25 |
|
| 26 |
+
RESPONSE LENGTH:
|
| 27 |
+
- Keep responses concise and focused.
|
| 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:
|
| 34 |
- Explain reasoning step-by-step
|
|
|
|
| 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,
|