Spaces:
Runtime error
Runtime error
Added prints for report button to troubleshoot
Browse files
Home.py
CHANGED
@@ -137,8 +137,8 @@ def application():
|
|
137 |
def report():
|
138 |
inputs = '|'.join(str(x) for x in st.session_state.inputs)
|
139 |
data = {'rprtd': date.today(),'inpts': inputs, 'title': st.session_state.output_dict[st.session_state.desc_iter]['titles'][st.session_state.title_iter][0], 'desc':st.session_state.output_dict[st.session_state.desc_iter]['text']}
|
|
|
140 |
try:
|
141 |
-
r_df = pd.DataFrame(data, index=[0])
|
142 |
r_p = pd.read_pickle(Path(__file__).parent / "Persistent_Data/reported_df.PICKLE")
|
143 |
w_p = pd.concat([r_df, r_p])
|
144 |
w_p = w_p.drop_duplicates()
|
|
|
137 |
def report():
|
138 |
inputs = '|'.join(str(x) for x in st.session_state.inputs)
|
139 |
data = {'rprtd': date.today(),'inpts': inputs, 'title': st.session_state.output_dict[st.session_state.desc_iter]['titles'][st.session_state.title_iter][0], 'desc':st.session_state.output_dict[st.session_state.desc_iter]['text']}
|
140 |
+
r_df = pd.DataFrame(data, index=[0])
|
141 |
try:
|
|
|
142 |
r_p = pd.read_pickle(Path(__file__).parent / "Persistent_Data/reported_df.PICKLE")
|
143 |
w_p = pd.concat([r_df, r_p])
|
144 |
w_p = w_p.drop_duplicates()
|