Hassankhwileh commited on
Commit
0f7eee8
·
verified ·
1 Parent(s): 6f5cd94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -125,3 +125,15 @@ with tab3:
125
  """,
126
  unsafe_allow_html=True
127
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  """,
126
  unsafe_allow_html=True
127
  )
128
+ # In app.py, under the consultant tab (tab3)
129
+ if st.button("الحصول على رأي المستشار", key="consultant_button"):
130
+ if consultant_query:
131
+ with st.spinner("المستشار يحلل قضيتك..."):
132
+ consultant_agent = create_consultant_agent()
133
+ response = get_agent_response(consultant_agent, consultant_query, selected_category)
134
+ st.session_state.chat_history.append(("المستشار", consultant_query, response))
135
+ st.write("رد المستشار:")
136
+ st.markdown(response, unsafe_allow_html=True)
137
+
138
+ # In app.py, under the consultant tab (tab3)
139
+