Entz commited on
Commit
9ec9fde
·
verified ·
1 Parent(s): ca016c7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -106,6 +106,16 @@ def main():
106
  st.dataframe(df)
107
  else:
108
  st.write("No data available")
 
 
 
 
 
 
 
 
 
 
109
 
110
  if __name__ == "__main__":
111
  main()
 
106
  st.dataframe(df)
107
  else:
108
  st.write("No data available")
109
+
110
+ # Provide download option for Q&A history as CSV
111
+ st.write("Due to a current bug, the app may not respond as expected. Below is an extract of the test results from previous interactions:")
112
+ csv = df.to_csv(index=False).encode('utf-8')
113
+ st.download_button(
114
+ label="Download Q&A history as CSV",
115
+ data=csv,
116
+ file_name='qa_output.csv',
117
+ mime='text/csv',
118
+ )
119
 
120
  if __name__ == "__main__":
121
  main()