Spaces:
Runtime error
Runtime error
Update pages/SkipTrace.py
Browse files- pages/SkipTrace.py +7 -9
pages/SkipTrace.py
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
-
# ─── Ensure utils/ is importable ──────────────────────────────
|
| 2 |
-
import sys, os
|
| 3 |
-
UTILS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
| 4 |
-
if UTILS_PATH not in sys.path:
|
| 5 |
-
sys.path.append(UTILS_PATH)
|
| 6 |
-
|
| 7 |
import streamlit as st
|
| 8 |
-
import
|
|
|
|
| 9 |
|
| 10 |
# ─── Ensure utils/ is importable ──────────────────────────────
|
| 11 |
UTILS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
@@ -38,7 +33,10 @@ def run_osint_query(query: str) -> dict:
|
|
| 38 |
results.append(f"⚠️ DuckDuckGo error: {e}")
|
| 39 |
|
| 40 |
# AI summarization
|
| 41 |
-
ai_summary = run_llm(
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
return {
|
| 44 |
"query": query,
|
|
@@ -59,7 +57,7 @@ if prompt := st.chat_input("Enter a name, email, or domain to OSINT..."):
|
|
| 59 |
# Run OSINT + AI
|
| 60 |
result = run_osint_query(prompt)
|
| 61 |
reply = f"**AI Skip-Trace Summary for '{prompt}':**\n\n{result['ai_summary']}"
|
| 62 |
-
|
| 63 |
with st.chat_message("assistant"):
|
| 64 |
st.markdown(reply)
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import requests
|
| 3 |
+
import sys, os
|
| 4 |
|
| 5 |
# ─── Ensure utils/ is importable ──────────────────────────────
|
| 6 |
UTILS_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
|
|
| 33 |
results.append(f"⚠️ DuckDuckGo error: {e}")
|
| 34 |
|
| 35 |
# AI summarization
|
| 36 |
+
ai_summary = run_llm(
|
| 37 |
+
f"Provide an OSINT-style skip-trace summary for:\n{query}\n\nResults:\n"
|
| 38 |
+
+ "\n".join(results)
|
| 39 |
+
)
|
| 40 |
|
| 41 |
return {
|
| 42 |
"query": query,
|
|
|
|
| 57 |
# Run OSINT + AI
|
| 58 |
result = run_osint_query(prompt)
|
| 59 |
reply = f"**AI Skip-Trace Summary for '{prompt}':**\n\n{result['ai_summary']}"
|
| 60 |
+
|
| 61 |
with st.chat_message("assistant"):
|
| 62 |
st.markdown(reply)
|
| 63 |
|