Update app.py
Browse files
app.py
CHANGED
@@ -268,6 +268,16 @@ def main():
|
|
268 |
# Display chat history with response selection
|
269 |
display_chat_history()
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
|
272 |
|
273 |
|
|
|
268 |
# Display chat history with response selection
|
269 |
display_chat_history()
|
270 |
|
271 |
+
# Add a button to download training data
|
272 |
+
training_data = load_training_data()
|
273 |
+
if training_data:
|
274 |
+
st.download_button(
|
275 |
+
label="Download Training Data",
|
276 |
+
data=json.dumps(training_data, indent=2),
|
277 |
+
file_name="pte_assistant_training_data.json",
|
278 |
+
mime="application/json"
|
279 |
+
)
|
280 |
+
|
281 |
|
282 |
|
283 |
|