jozzy commited on
Commit
f08a6e0
·
1 Parent(s): a6ed2d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -55,7 +55,12 @@ def clear():
55
 
56
  def show():
57
  global messages
58
- return messages
 
 
 
 
 
59
 
60
 
61
  with gr.Blocks() as chatHistory:
 
55
 
56
  def show():
57
  global messages
58
+ chats = ""
59
+ for msg in messages:
60
+ if msg['role'] != 'system':
61
+ chats += msg['role'] + ": " + msg['content'] + "\n\n"
62
+
63
+ return chats
64
 
65
 
66
  with gr.Blocks() as chatHistory: