johann22 commited on
Commit
39afd1e
·
1 Parent(s): 8c52743

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,9 +41,9 @@ def generate(
41
  for response in stream:
42
  output += response.token.text
43
  yield output
44
- return output
45
 
46
- output = gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel")
47
  additional_inputs=[
48
  gr.Textbox(
49
  label="Prompt",
 
41
  for response in stream:
42
  output += response.token.text
43
  yield output
44
+ return output,output
45
 
46
+ output = [gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),chat_state]
47
  additional_inputs=[
48
  gr.Textbox(
49
  label="Prompt",