Spaces:
Sleeping
Sleeping
Update sherlock2.py
Browse files- sherlock2.py +4 -1
sherlock2.py
CHANGED
@@ -314,12 +314,15 @@ def investigate():
|
|
314 |
with st.expander("Sherlock's Analysis and Suggestions:"):
|
315 |
st.write(response.text)
|
316 |
|
|
|
|
|
|
|
317 |
search_options = st.multiselect("Search for additional clues:", ["Wikipedia", "Internet"], default=["Wikipedia"])
|
318 |
if st.button("Search"):
|
319 |
with st.spinner("Searching for clues..."):
|
320 |
web_search_results = []
|
321 |
if "Wikipedia" in search_options:
|
322 |
-
wikipedia_info = search_and_scrape_wikipedia(keywords)
|
323 |
st.subheader("Wikipedia Findings:")
|
324 |
for info in wikipedia_info:
|
325 |
st.write(f"**Topic:** {info['topic']}")
|
|
|
314 |
with st.expander("Sherlock's Analysis and Suggestions:"):
|
315 |
st.write(response.text)
|
316 |
|
317 |
+
# Initialize wikipedia_info with an empty list
|
318 |
+
wikipedia_info = [] # Add this line here
|
319 |
+
|
320 |
search_options = st.multiselect("Search for additional clues:", ["Wikipedia", "Internet"], default=["Wikipedia"])
|
321 |
if st.button("Search"):
|
322 |
with st.spinner("Searching for clues..."):
|
323 |
web_search_results = []
|
324 |
if "Wikipedia" in search_options:
|
325 |
+
wikipedia_info = search_and_scrape_wikipedia(keywords)
|
326 |
st.subheader("Wikipedia Findings:")
|
327 |
for info in wikipedia_info:
|
328 |
st.write(f"**Topic:** {info['topic']}")
|