Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -796,8 +796,12 @@ def process_input(prompt: str, uploaded_files):
|
|
796 |
client = get_openai_client()
|
797 |
|
798 |
# Prepare system prompt
|
799 |
-
sys_prompt = get_idea_system_prompt()
|
800 |
|
|
|
|
|
|
|
|
|
|
|
801 |
# Optional: gather search results
|
802 |
search_content = None
|
803 |
if use_web_search:
|
|
|
796 |
client = get_openai_client()
|
797 |
|
798 |
# Prepare system prompt
|
|
|
799 |
|
800 |
+
selected_cat = st.session_state.get("category_focus", "(None)")
|
801 |
+
if selected_cat == "(None)":
|
802 |
+
selected_cat = None
|
803 |
+
|
804 |
+
sys_prompt = get_idea_system_prompt(selected_category=selected_cat)
|
805 |
# Optional: gather search results
|
806 |
search_content = None
|
807 |
if use_web_search:
|