Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -808,7 +808,6 @@ def side():
|
|
| 808 |
for uploaded_file in uploaded_files:
|
| 809 |
try:
|
| 810 |
upload_to_firebase(st.session_state["wix_user_id"], uploaded_file)
|
| 811 |
-
st.sidebar.success(f"File '{uploaded_file.name}' uploaded and converted to TXT!")
|
| 812 |
except Exception as e:
|
| 813 |
st.sidebar.error(f"Error processing file '{uploaded_file.name}': {e}")
|
| 814 |
|
|
@@ -818,7 +817,7 @@ def side():
|
|
| 818 |
doc_ids = list(st.session_state["documents"].keys())
|
| 819 |
doc_options = ["None (use only main knowledge base)"] + doc_ids
|
| 820 |
selected_options = st.multiselect(
|
| 821 |
-
"
|
| 822 |
options=doc_options,
|
| 823 |
default="None (use only main knowledge base)",
|
| 824 |
format_func=lambda x: st.session_state["documents"][x].get("name", f"Document {x}") if x != "None (use only main knowledge base)" else x,
|
|
@@ -2139,7 +2138,7 @@ def handle_prompt(prompt):
|
|
| 2139 |
"8. **Polished Presentation**: Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of language and content design, leaving no room for ambiguity or errors. "
|
| 2140 |
"dont give source link in content"
|
| 2141 |
"Dont mention trust bucket names literally"
|
| 2142 |
-
"1. ##List of TrustBuilders Used: Provide
|
| 2143 |
" 2. ##Heuristics and Creative Techniques :"
|
| 2144 |
" -List them in a footnote-style small heading."
|
| 2145 |
" Use the following structure:"
|
|
|
|
| 808 |
for uploaded_file in uploaded_files:
|
| 809 |
try:
|
| 810 |
upload_to_firebase(st.session_state["wix_user_id"], uploaded_file)
|
|
|
|
| 811 |
except Exception as e:
|
| 812 |
st.sidebar.error(f"Error processing file '{uploaded_file.name}': {e}")
|
| 813 |
|
|
|
|
| 817 |
doc_ids = list(st.session_state["documents"].keys())
|
| 818 |
doc_options = ["None (use only main knowledge base)"] + doc_ids
|
| 819 |
selected_options = st.multiselect(
|
| 820 |
+
"",
|
| 821 |
options=doc_options,
|
| 822 |
default="None (use only main knowledge base)",
|
| 823 |
format_func=lambda x: st.session_state["documents"][x].get("name", f"Document {x}") if x != "None (use only main knowledge base)" else x,
|
|
|
|
| 2138 |
"8. **Polished Presentation**: Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of language and content design, leaving no room for ambiguity or errors. "
|
| 2139 |
"dont give source link in content"
|
| 2140 |
"Dont mention trust bucket names literally"
|
| 2141 |
+
"1. ##List of TrustBuilders Used: Provide trustbuilders used with source links "
|
| 2142 |
" 2. ##Heuristics and Creative Techniques :"
|
| 2143 |
" -List them in a footnote-style small heading."
|
| 2144 |
" Use the following structure:"
|