Entz commited on
Commit
65e0ee4
1 Parent(s): eef3bec

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -116,6 +116,18 @@ def main():
116
  )
117
  else:
118
  st.write("No data available")
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
  if __name__ == "__main__":
121
  main()
 
116
  )
117
  else:
118
  st.write("No data available")
119
+
120
+ # Check if the existing CSV file is present in the working directory
121
+ if os.path.exists('qa_output.csv'):
122
+ st.write("Additionally, you can download the pre-existing CSV file with historical data:")
123
+ with open('qa_output.csv', 'rb') as f:
124
+ st.download_button(
125
+ label="Download existing Q&A history CSV",
126
+ data=f,
127
+ file_name='qa_output.csv',
128
+ mime='text/csv',
129
+ )
130
+
131
 
132
  if __name__ == "__main__":
133
  main()