Pijush2023 commited on
Commit
c1b3106
·
verified ·
1 Parent(s): cfdc415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -712,15 +712,15 @@ def generate_answer(message, choice, retrieval_mode, selected_model):
712
 
713
 
714
 
715
- # def add_message(history, message):
716
- # history.append((message, None))
717
- # return history, gr.Textbox(value="", interactive=True, show_label=False)
718
-
719
  def add_message(history, message):
720
- # Append a tuple with the user's message and a placeholder for the assistant's response
721
- history.append((message, "")) # Use an empty string to ensure the format is correct
722
  return history, gr.Textbox(value="", interactive=True, show_label=False)
723
 
 
 
 
 
 
724
 
725
  def print_like_dislike(x: gr.LikeData):
726
  print(x.index, x.value, x.liked)
 
712
 
713
 
714
 
 
 
 
 
715
  def add_message(history, message):
716
+ history.append((message, None))
 
717
  return history, gr.Textbox(value="", interactive=True, show_label=False)
718
 
719
+ # def add_message(history, message):
720
+ # # Append a tuple with the user's message and a placeholder for the assistant's response
721
+ # history.append((message, "")) # Use an empty string to ensure the format is correct
722
+ # return history, gr.Textbox(value="", interactive=True, show_label=False)
723
+
724
 
725
  def print_like_dislike(x: gr.LikeData):
726
  print(x.index, x.value, x.liked)