Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from langchain_groq import ChatGroq
|
|
| 6 |
|
| 7 |
llm = ChatGroq(
|
| 8 |
model="llama3-70b-8192",
|
| 9 |
-
temperature=0
|
| 10 |
max_retries=2,
|
| 11 |
)
|
| 12 |
|
|
@@ -61,6 +61,10 @@ request = st.text_input(
|
|
| 61 |
# Execute chat and display results
|
| 62 |
if st.button("Analyze"):
|
| 63 |
if st.session_state['df'] is not None:
|
| 64 |
-
st.session_state['df'].chat(request)
|
| 65 |
else:
|
| 66 |
st.warning("Please select a conversation and load data first.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
llm = ChatGroq(
|
| 8 |
model="llama3-70b-8192",
|
| 9 |
+
temperature=0,
|
| 10 |
max_retries=2,
|
| 11 |
)
|
| 12 |
|
|
|
|
| 61 |
# Execute chat and display results
|
| 62 |
if st.button("Analyze"):
|
| 63 |
if st.session_state['df'] is not None:
|
| 64 |
+
st.session_state['answer'] = st.session_state['df'].chat(request)
|
| 65 |
else:
|
| 66 |
st.warning("Please select a conversation and load data first.")
|
| 67 |
+
|
| 68 |
+
url
|
| 69 |
+
st.session_state['df']
|
| 70 |
+
st.session_state['answer']
|