This repo contains a demo for my submission to Apart Research's Hackathon for Technical AI Safety Startups, which won 1st place. See my submission here
This repository contains a demonstration of the DarkForest Human Content Verification System (HCVS). The demo consists of three main components:
- DarkForest API
- TruthBlog (User Interface)
- DarkFoest Dashboard (Admin Interface)
- Python 3.8 or higher
- pip (Python package installer)
-
Clone this repository:
git clone https://github.com/muzz-yasir/darkforest-hcvs-demo.git cd darkforest-hcvs-demo
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install fastapi uvicorn streamlit nltk plotly pandas requests
-
Navigate to the API directory:
cd hcvs_api
-
Run the API:
uvicorn hcvs_api:app --reload
The API will be available at http://localhost:8000
.
-
Open a new terminal window and navigate to the TruthBlog directory:
cd truthblog
-
Run the TruthBlog Streamlit app:
streamlit run truthblog.py
TruthBlog will be accessible at http://localhost:8501
.
-
Open another terminal window and navigate to the HCVS Dashboard directory:
cd hcvs_dashboard
-
Run the HCVS Dashboard Streamlit app:
streamlit run hcvs_dashboard.py
The HCVS Dashboard will be available at http://localhost:8502
.
- Start by creating some posts on the TruthBlog interface.
- Observe how the HCVS API verifies the content.
- Use the HCVS Dashboard to explore the verification results and blockchain data.
If you encounter any issues with NLTK data, you can manually download the required datasets:
import nltk
nltk.download('punkt')
nltk.download('stopwords')
This is a demonstration project and should not be used in production without further development and security considerations.