abhi1nandy2 commited on
Commit
4f3359c
·
verified ·
1 Parent(s): 35a0c80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -72,11 +72,11 @@ def respond(
72
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
73
  """
74
 
75
- initial_message = [("Yo who dis Abhilash?", "")]
76
 
77
  demo = gr.ChatInterface(
78
  respond,
79
- message=initial_message,
80
  additional_inputs=[
81
  # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
82
  # gr.Slider(minimum=1, maximum=8192, value=512, step=1, label="Max new tokens"),
@@ -89,6 +89,7 @@ demo = gr.ChatInterface(
89
  # label="Top-p (nucleus sampling)",
90
  # ),
91
  ],
 
92
  )
93
 
94
 
 
72
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
73
  """
74
 
75
+ initial_message = [("user", "Yo who dis Abhilash?")]
76
 
77
  demo = gr.ChatInterface(
78
  respond,
79
+ # message=initial_message,
80
  additional_inputs=[
81
  # gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
82
  # gr.Slider(minimum=1, maximum=8192, value=512, step=1, label="Max new tokens"),
 
89
  # label="Top-p (nucleus sampling)",
90
  # ),
91
  ],
92
+ value=initial_message
93
  )
94
 
95