mgreg555 commited on
Commit
ac49d87
·
verified ·
1 Parent(s): 9391145

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ def vote(tmp, index_state, data: gr.LikeData):
108
  value_new = data.value
109
  index_new = data.index
110
  file_name = 'good.txt' if data.liked else 'bad.txt'
111
- write_to_file(file_name, value_new)
112
 
113
  def find_previous_question(answer_string):
114
  # Split the chat string into lines
 
108
  value_new = data.value
109
  index_new = data.index
110
  file_name = 'good.txt' if data.liked else 'bad.txt'
111
+ write_to_file(file_name, value_new + ';' + find_previous_question(value_new))
112
 
113
  def find_previous_question(answer_string):
114
  # Split the chat string into lines