Chad commited on
Commit
65f6a55
·
1 Parent(s): a1d5bb3
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -40,15 +40,16 @@ def respond(
40
  demo = gr.ChatInterface(
41
  respond,
42
  additional_inputs=[
43
- gr.Textbox(value="You are a historian chatbot. Only discuss history.", label="System message"),
44
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
45
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
46
  gr.Slider(
47
  minimum=0.1,
48
  maximum=1.0,
49
  value=0.95,
50
  step=0.05,
51
  label="Top-p (nucleus sampling)",
 
52
  ),
53
  ],
54
  examples=[
@@ -67,4 +68,4 @@ demo = gr.ChatInterface(
67
  )
68
 
69
  if __name__ == "__main__":
70
- demo.launch()
 
40
  demo = gr.ChatInterface(
41
  respond,
42
  additional_inputs=[
43
+ gr.Textbox(value="You are a historian chatbot. Only discuss history.", label="System message", interactive=False),
44
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens", interactive=False),
45
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature", interactive=False),
46
  gr.Slider(
47
  minimum=0.1,
48
  maximum=1.0,
49
  value=0.95,
50
  step=0.05,
51
  label="Top-p (nucleus sampling)",
52
+ interactive=False
53
  ),
54
  ],
55
  examples=[
 
68
  )
69
 
70
  if __name__ == "__main__":
71
+ demo.launch()