Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
@@ -136,8 +136,7 @@ if user_input:
|
|
136 |
with st.chat_message("assistant"):
|
137 |
with st.spinner("Thinking..."):
|
138 |
try:
|
139 |
-
full_response = call_perplexity_api(user_input)
|
140 |
-
st.write(full_response)
|
141 |
full_response_json = json.loads(full_response["choices"][0]["message"]["content"])
|
142 |
st.subheader("🤔 Reasoning")
|
143 |
if full_response_json.think:
|
|
|
136 |
with st.chat_message("assistant"):
|
137 |
with st.spinner("Thinking..."):
|
138 |
try:
|
139 |
+
full_response = call_perplexity_api(user_input).json()
|
|
|
140 |
full_response_json = json.loads(full_response["choices"][0]["message"]["content"])
|
141 |
st.subheader("🤔 Reasoning")
|
142 |
if full_response_json.think:
|