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

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -104,18 +104,18 @@ def main():
104
  if qa_data:
105
  df = pd.DataFrame(qa_data, columns=["Question", "Answer", "Version"])
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()
 
104
  if qa_data:
105
  df = pd.DataFrame(qa_data, columns=["Question", "Answer", "Version"])
106
  st.dataframe(df)
107
+
108
+ # Provide download option for Q&A history as CSV
109
+ 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:")
110
+ csv = df.to_csv(index=False).encode('utf-8')
111
+ st.download_button(
112
+ label="Download Q&A history as CSV",
113
+ data=csv,
114
+ file_name='qa_output.csv',
115
+ mime='text/csv',
116
+ )
117
  else:
118
  st.write("No data available")
 
 
 
 
 
 
 
 
 
 
119
 
120
  if __name__ == "__main__":
121
  main()