Spaces:
Running
Running
Hassankhwileh
commited on
Update app.py
Browse files
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 |
+
|