Update app.py
Browse files
app.py
CHANGED
|
@@ -46,8 +46,8 @@ def initialize_session_state():
|
|
| 46 |
if 'domain' not in st.session_state: st.session_state['domain'] = 'Organic solar cell'
|
| 47 |
|
| 48 |
# Config States (Defaults)
|
| 49 |
-
if 'model1_select' not in st.session_state: st.session_state['model1_select'] = 'deepseek-
|
| 50 |
-
if 'model2_select' not in st.session_state: st.session_state['model2_select'] = 'deepseek-
|
| 51 |
if 'api_key' not in st.session_state: st.session_state['api_key'] = os.getenv('OPENAI_API_KEY', '')
|
| 52 |
|
| 53 |
# Agent & Logic States
|
|
@@ -73,8 +73,8 @@ def update_agent_if_needed(current_config):
|
|
| 73 |
# Don't try to init if no key, just return
|
| 74 |
return
|
| 75 |
|
| 76 |
-
model1 = current_config['model1'] or "deepseek-
|
| 77 |
-
model2 = current_config['model2'] or "deepseek-
|
| 78 |
domain = current_config['domain']
|
| 79 |
file_path = current_config['file_path']
|
| 80 |
image_path = current_config['image_path']
|
|
|
|
| 46 |
if 'domain' not in st.session_state: st.session_state['domain'] = 'Organic solar cell'
|
| 47 |
|
| 48 |
# Config States (Defaults)
|
| 49 |
+
if 'model1_select' not in st.session_state: st.session_state['model1_select'] = 'deepseek-reasoner'
|
| 50 |
+
if 'model2_select' not in st.session_state: st.session_state['model2_select'] = 'deepseek-reasoner'
|
| 51 |
if 'api_key' not in st.session_state: st.session_state['api_key'] = os.getenv('OPENAI_API_KEY', '')
|
| 52 |
|
| 53 |
# Agent & Logic States
|
|
|
|
| 73 |
# Don't try to init if no key, just return
|
| 74 |
return
|
| 75 |
|
| 76 |
+
model1 = current_config['model1'] or "deepseek-reasoner"
|
| 77 |
+
model2 = current_config['model2'] or "deepseek-reasoner"
|
| 78 |
domain = current_config['domain']
|
| 79 |
file_path = current_config['file_path']
|
| 80 |
image_path = current_config['image_path']
|