AashitaK commited on
Commit
b830172
·
verified ·
1 Parent(s): f327847

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -43,12 +43,14 @@ def respond(
43
  """
44
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
45
  """
46
- demo = gr.ChatInterface(
47
- respond,
48
- additional_inputs=[
49
- gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
50
- ],
51
- )
 
 
52
 
53
 
54
  if __name__ == "__main__":
 
43
  """
44
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
45
  """
46
+ with gr.Blocks() as demo:
47
+ gr.Markdown(f"## {self.title}\n{self.description}")
48
+ gr.ChatInterface(
49
+ respond,
50
+ additional_inputs=[
51
+ gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
52
+ ],
53
+ )
54
 
55
 
56
  if __name__ == "__main__":