Ankitajadhav commited on
Commit
28fb49c
·
verified ·
1 Parent(s): 40167a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -86,12 +86,12 @@ demo = gr.ChatInterface(
86
  retry_btn=None,
87
  undo_btn="Delete Previous",
88
  clear_btn="Clear",
89
- # additional_inputs=[
90
- # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
91
- # gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
92
- # gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
93
- # gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
94
- # ],
95
  )
96
 
97
  if __name__ == "__main__":
 
86
  retry_btn=None,
87
  undo_btn="Delete Previous",
88
  clear_btn="Clear",
89
+ additional_inputs=[
90
+ gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
91
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
92
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
93
+ gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
94
+ ],
95
  )
96
 
97
  if __name__ == "__main__":