Update app.py
Browse files
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
|
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 "
|
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": [
|