Update app.py
Browse files
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
|