Migu3low commited on
Commit
84bf13e
·
verified ·
1 Parent(s): 6fe3533

Update second Chatbot

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -42,7 +42,7 @@ def respond(
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
- demo1 = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
48
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
@@ -56,9 +56,6 @@ demo1 = gr.ChatInterface(
56
  label="Top-p (nucleus sampling)",
57
  ),
58
  ],
59
- )
60
-
61
- demo2 = gr.ChatInterface(
62
  respond,
63
  additional_inputs=[
64
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
@@ -73,6 +70,6 @@ demo2 = gr.ChatInterface(
73
  ),
74
  ],
75
  )
 
76
  if __name__ == "__main__":
77
- demo1.launch()
78
- demo2.launch()
 
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
45
+ demo = gr.ChatInterface(
46
  respond,
47
  additional_inputs=[
48
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
56
  label="Top-p (nucleus sampling)",
57
  ),
58
  ],
 
 
 
59
  respond,
60
  additional_inputs=[
61
  gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
 
70
  ),
71
  ],
72
  )
73
+
74
  if __name__ == "__main__":
75
+ demo.launch()