Ritvik19 commited on
Commit
fefc5e6
·
verified ·
1 Parent(s): 7e4014b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -45,7 +45,7 @@ def calculate_cost_wrapper(inputs=None):
45
  stats_df.loc["total"] = stats_df.sum()
46
  response = stats_df.to_markdown()
47
  except ValueError:
48
- response = "No costing incurred yet"
49
  st.session_state.messages.append(("/cost", response, ""))
50
  return response
51
 
@@ -60,7 +60,7 @@ def download_conversation_wrapper(inputs=None):
60
  ),
61
  "document_snippets": (
62
  st.session_state.index.to_list()
63
- if "headers" in st.session_state
64
  else []
65
  ),
66
  "conversation": [
 
45
  stats_df.loc["total"] = stats_df.sum()
46
  response = stats_df.to_markdown()
47
  except ValueError:
48
+ response = "No cost incurred yet"
49
  st.session_state.messages.append(("/cost", response, ""))
50
  return response
51
 
 
60
  ),
61
  "document_snippets": (
62
  st.session_state.index.to_list()
63
+ if "index" in st.session_state
64
  else []
65
  ),
66
  "conversation": [