NeerAbhy commited on
Commit
b3408bc
·
verified ·
1 Parent(s): f8a2a6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -200,7 +200,7 @@ def tree_to_code(tree, feature_names):
200
 
201
 
202
 
203
- tree_to_code(model,cols)
204
 
205
 
206
 
@@ -242,19 +242,7 @@ def respond(
242
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
243
  """
244
  demo = gr.ChatInterface(
245
- respond,
246
- additional_inputs=[
247
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
248
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
249
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
250
- gr.Slider(
251
- minimum=0.1,
252
- maximum=1.0,
253
- value=0.95,
254
- step=0.05,
255
- label="Top-p (nucleus sampling)",
256
- ),
257
- ],
258
  )
259
 
260
 
 
200
 
201
 
202
 
203
+
204
 
205
 
206
 
 
242
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
243
  """
244
  demo = gr.ChatInterface(
245
+ tree_to_code(model,cols),
 
 
 
 
 
 
 
 
 
 
 
 
246
  )
247
 
248