jenkim25 commited on
Commit
4293cb3
·
verified ·
1 Parent(s): 2f4c75d

why won't this work :(

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -16,7 +16,7 @@ def respond(
16
  history: list[tuple[str, str]],
17
  system_message="You are a friendly Chatbot.",
18
  max_tokens=512,
19
- temperature=0.7,
20
  top_p=0.95,
21
  use_local_model=False,
22
  ):
@@ -143,10 +143,10 @@ with gr.Blocks(css=custom_css) as demo:
143
 
144
  with gr.Row():
145
  system_message = gr.Dropdown(
146
- choices=["You are a friendly Chatbot that responds at an elementary school level.",
147
- "You are a friendly middle school Chatbot.", "You are a friendly high school Chatbot.",
148
- "You are a friendly college Chatbot."],
149
- value="You are a friendly Chatbot.",
150
  label="System message",
151
  interactive=True
152
  )
@@ -157,7 +157,7 @@ with gr.Blocks(css=custom_css) as demo:
157
 
158
  with gr.Row():
159
  max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
160
- temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
161
  top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
162
 
163
  chat_history = gr.Chatbot(label="Chat")
 
16
  history: list[tuple[str, str]],
17
  system_message="You are a friendly Chatbot.",
18
  max_tokens=512,
19
+ temperature=1.5,
20
  top_p=0.95,
21
  use_local_model=False,
22
  ):
 
143
 
144
  with gr.Row():
145
  system_message = gr.Dropdown(
146
+ choices=["You are a friendly Chatbot that responds with the vocabulary of the seven year old.",
147
+ "You are a friendly Chatbot. Please respond at a level that middle schoolers can understand",
148
+ "You are a friendly high school Chatbot who responds at a level the average person can understand.",
149
+ "You are a friendly Chatbot that uses a very advanced, college-level vocabulary in your responses."],
150
  label="System message",
151
  interactive=True
152
  )
 
157
 
158
  with gr.Row():
159
  max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
160
+ temperature = gr.Slider(minimum=0.5, maximum=4.0, value=0.7, step=0.1, label="Temperature")
161
  top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
162
 
163
  chat_history = gr.Chatbot(label="Chat")