Ari1020 commited on
Commit
39fcf2c
·
verified ·
1 Parent(s): 20b8b59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -15,6 +15,7 @@ def respond(
15
  temperature,
16
  top_p,
17
  ):
 
18
  messages = [{"role": "system", "content": system_message}]
19
 
20
  for val in history:
@@ -46,9 +47,10 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
46
  demo = gr.ChatInterface(
47
  respond,
48
  additional_inputs=[
49
- #gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
50
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
51
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
 
 
 
52
  gr.Slider(
53
  minimum=0.1,
54
  maximum=1.0,
@@ -56,6 +58,7 @@ demo = gr.ChatInterface(
56
  step=0.05,
57
  label="Top-p (nucleus sampling)",
58
  ),
 
59
  ],
60
  )
61
 
 
15
  temperature,
16
  top_p,
17
  ):
18
+ system_message = "you are an angry ai"
19
  messages = [{"role": "system", "content": system_message}]
20
 
21
  for val in history:
 
47
  demo = gr.ChatInterface(
48
  respond,
49
  additional_inputs=[
 
 
50
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
51
+ """
52
+ gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
53
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
54
  gr.Slider(
55
  minimum=0.1,
56
  maximum=1.0,
 
58
  step=0.05,
59
  label="Top-p (nucleus sampling)",
60
  ),
61
+ """
62
  ],
63
  )
64