hiyouga commited on
Commit
c7ec932
1 Parent(s): ed2abfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -80,13 +80,15 @@ def stream_chat(message: str, history: list, system: str, temperature: float, ma
80
  yield output
81
 
82
 
 
 
83
  with gr.Blocks(css=CSS) as demo:
84
  gr.HTML(TITLE)
85
  gr.HTML(DESCRIPTION)
86
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
87
  gr.ChatInterface(
88
  fn=stream_chat,
89
- chatbot=gr.Chatbot(height=450),
90
  fill_height=True,
91
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
92
  additional_inputs=[
 
80
  yield output
81
 
82
 
83
+ chatbot = gr.Chatbot(height=450)
84
+
85
  with gr.Blocks(css=CSS) as demo:
86
  gr.HTML(TITLE)
87
  gr.HTML(DESCRIPTION)
88
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
89
  gr.ChatInterface(
90
  fn=stream_chat,
91
+ chatbot=chatbot,
92
  fill_height=True,
93
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
94
  additional_inputs=[