Spaces:
Runtime error
Runtime error
fikird
commited on
Commit
·
3546c65
1
Parent(s):
9a9e06d
Fix imports and dependencies
Browse files- app.py +1 -1
- osint_engine.py +11 -11
- requirements.txt +9 -8
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import asyncio
|
| 3 |
from search_engine import search, advanced_search
|
| 4 |
-
from osint_engine import create_report
|
| 5 |
import time
|
| 6 |
|
| 7 |
def format_results(results):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import asyncio
|
| 3 |
from search_engine import search, advanced_search
|
| 4 |
+
from osint_engine import create_report_from_data as create_report
|
| 5 |
import time
|
| 6 |
|
| 7 |
def format_results(results):
|
osint_engine.py
CHANGED
|
@@ -1,25 +1,25 @@
|
|
| 1 |
-
import os
|
| 2 |
-
import re
|
| 3 |
-
import json
|
| 4 |
-
import time
|
| 5 |
import asyncio
|
| 6 |
import aiohttp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
import requests
|
| 8 |
-
import httpx
|
| 9 |
from PIL import Image
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
from selenium import webdriver
|
| 13 |
from selenium.webdriver.chrome.options import Options
|
| 14 |
from selenium.webdriver.chrome.service import Service
|
| 15 |
from webdriver_manager.chrome import ChromeDriverManager
|
| 16 |
from geopy.geocoders import Nominatim
|
| 17 |
from waybackpy import WaybackMachineCDXServerAPI
|
| 18 |
-
import
|
| 19 |
-
from datetime import datetime
|
| 20 |
from googlesearch import search as google_search
|
| 21 |
-
import base64
|
| 22 |
-
import io
|
| 23 |
|
| 24 |
class OSINTEngine:
|
| 25 |
"""OSINT capabilities for advanced information gathering"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import asyncio
|
| 2 |
import aiohttp
|
| 3 |
+
from bs4 import BeautifulSoup
|
| 4 |
+
import re
|
| 5 |
+
from typing import Dict, List, Optional, Union, Any
|
| 6 |
+
import json
|
| 7 |
+
from datetime import datetime
|
| 8 |
+
import base64
|
| 9 |
import requests
|
|
|
|
| 10 |
from PIL import Image
|
| 11 |
+
import io
|
| 12 |
+
import os
|
| 13 |
+
import httpx
|
| 14 |
+
import whois
|
| 15 |
from selenium import webdriver
|
| 16 |
from selenium.webdriver.chrome.options import Options
|
| 17 |
from selenium.webdriver.chrome.service import Service
|
| 18 |
from webdriver_manager.chrome import ChromeDriverManager
|
| 19 |
from geopy.geocoders import Nominatim
|
| 20 |
from waybackpy import WaybackMachineCDXServerAPI
|
| 21 |
+
import googlesearch
|
|
|
|
| 22 |
from googlesearch import search as google_search
|
|
|
|
|
|
|
| 23 |
|
| 24 |
class OSINTEngine:
|
| 25 |
"""OSINT capabilities for advanced information gathering"""
|
requirements.txt
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
--find-links https://download.pytorch.org/whl/torch_stable.html
|
| 2 |
-
torch==2.0
|
| 3 |
-
torchvision==0.
|
| 4 |
-
torchaudio==2.0
|
| 5 |
transformers==4.35.2
|
| 6 |
numpy>=1.23.5
|
| 7 |
scikit-learn>=1.2.2
|
| 8 |
scipy>=1.10.1
|
| 9 |
nltk>=3.8.1
|
| 10 |
-
sentence-transformers
|
| 11 |
tqdm>=4.65.0
|
| 12 |
-
gradio==4.
|
| 13 |
-
duckduckgo-search==3.9.
|
| 14 |
beautifulsoup4==4.12.2
|
| 15 |
-
langchain==0.0.
|
| 16 |
lxml==4.9.3
|
| 17 |
requests==2.31.0
|
| 18 |
protobuf==4.25.1
|
|
@@ -24,4 +24,5 @@ python-whois==0.8.0
|
|
| 24 |
geopy==2.4.1
|
| 25 |
httpx==0.25.2
|
| 26 |
googlesearch-python==1.2.3
|
| 27 |
-
waybackpy==3.0.6
|
|
|
|
|
|
| 1 |
--find-links https://download.pytorch.org/whl/torch_stable.html
|
| 2 |
+
torch==2.1.0
|
| 3 |
+
torchvision==0.16.0
|
| 4 |
+
torchaudio==2.1.0
|
| 5 |
transformers==4.35.2
|
| 6 |
numpy>=1.23.5
|
| 7 |
scikit-learn>=1.2.2
|
| 8 |
scipy>=1.10.1
|
| 9 |
nltk>=3.8.1
|
| 10 |
+
sentence-transformers==2.2.2
|
| 11 |
tqdm>=4.65.0
|
| 12 |
+
gradio==4.7.1
|
| 13 |
+
duckduckgo-search==3.9.9
|
| 14 |
beautifulsoup4==4.12.2
|
| 15 |
+
langchain==0.0.339
|
| 16 |
lxml==4.9.3
|
| 17 |
requests==2.31.0
|
| 18 |
protobuf==4.25.1
|
|
|
|
| 24 |
geopy==2.4.1
|
| 25 |
httpx==0.25.2
|
| 26 |
googlesearch-python==1.2.3
|
| 27 |
+
waybackpy==3.0.6
|
| 28 |
+
google==3.0.0
|