omvishesh commited on
Commit
7e41587
·
verified ·
1 Parent(s): f2cd881

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +30 -30
app.py CHANGED
@@ -168,36 +168,36 @@ with gr.Blocks() as demo:
168
 
169
  chatbot = gr.ChatInterface(
170
  respond,
171
- additional_inputs=[
172
- gr.Textbox(
173
- value="You are a friendly chatbot.",
174
- label="System Message",
175
- info="Customize how the assistant behaves in conversations."
176
- ),
177
- gr.Slider(
178
- minimum=1,
179
- maximum=2048,
180
- value=512,
181
- step=1,
182
- label="Max New Tokens",
183
- info="Maximum number of tokens for the assistant's response."
184
- ),
185
- gr.Slider(
186
- minimum=0.1,
187
- maximum=4.0,
188
- value=0.7,
189
- step=0.1,
190
- label="Temperature",
191
- info="Controls randomness in the assistant's response."
192
- ),
193
- gr.Slider(
194
- minimum=0.1,
195
- maximum=1.0,
196
- value=0.95,
197
- step=0.05,
198
- label="Top-p (Nucleus Sampling)",
199
- info="Limits sampling to a subset of tokens with cumulative probability top_p."
200
- ),
201
  ]
202
  )
203
 
 
168
 
169
  chatbot = gr.ChatInterface(
170
  respond,
171
+ # additional_inputs=[
172
+ # gr.Textbox(
173
+ # value="You are a friendly chatbot.",
174
+ # label="System Message",
175
+ # info="Customize how the assistant behaves in conversations."
176
+ # ),
177
+ # gr.Slider(
178
+ # minimum=1,
179
+ # maximum=2048,
180
+ # value=512,
181
+ # step=1,
182
+ # label="Max New Tokens",
183
+ # info="Maximum number of tokens for the assistant's response."
184
+ # ),
185
+ # gr.Slider(
186
+ # minimum=0.1,
187
+ # maximum=4.0,
188
+ # value=0.7,
189
+ # step=0.1,
190
+ # label="Temperature",
191
+ # info="Controls randomness in the assistant's response."
192
+ # ),
193
+ # gr.Slider(
194
+ # minimum=0.1,
195
+ # maximum=1.0,
196
+ # value=0.95,
197
+ # step=0.05,
198
+ # label="Top-p (Nucleus Sampling)",
199
+ # info="Limits sampling to a subset of tokens with cumulative probability top_p."
200
+ # ),
201
  ]
202
  )
203