leolaish commited on
Commit
300f3f7
·
verified ·
1 Parent(s): 9ab3546

Update app1.py

Browse files
Files changed (1) hide show
  1. app1.py +7 -1
app1.py CHANGED
@@ -25,7 +25,13 @@ with gr.Blocks() as demo:
25
  response += token
26
 
27
  # Update chat history
28
- chat_history_value = chat_history.value
 
 
 
 
 
 
29
  chat_history_value.append((message, response))
30
  chat_history.update(value=chat_history_value)
31
 
 
25
  response += token
26
 
27
  # Update chat history
28
+ chat_history_value = [
29
+ ("User", "Hello!"),
30
+ ("Assistant", "Hello! How can I help you today?"),
31
+ "User", "I need help with..."),
32
+ ( "Assistant", "I'd be happy to help!"),
33
+ ]
34
+ chat_history.update(value=chat_history_value)
35
  chat_history_value.append((message, response))
36
  chat_history.update(value=chat_history_value)
37