Skip to content

ss2d22/hacksussex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 HackSussex

A hackathon project to classify hate speech using AI, featuring a dashboard website, backend server, and user authentication.

TensorFlow Hugging Face Deno Oak Clerk Swagger Podman

📚 About

HackSussex is a hackathon project aimed at detecting and classifying hate speech using AI. The project consists of:

  • A TensorFlow-based AI model trained to classify hate speech, served via Hugging Face.
  • A dashboard website (built with Vite and React) that shows top 10 trending hashtags on Bluesky filled with misinformation.
  • A backend server (using Deno and Oak) for authentication, user management, and AI inference.
  • User authentication powered by Clerk.
  • API documentation following OpenAPI 3.0 standards.

🌟 Features

  • 🎯 AI-powered hate speech classification using TensorFlow & Hugging Face
  • 🔥 Real-time dashboard to view and filter harmful content
  • 🌍 Server backend with Deno & Oak for authentication and AI inference
  • 🔒 Secure user authentication with Clerk
  • 🌚 Fully documented API with Swagger (OpenAPI 3.0)
  • 🐻 Containerized deployment with Podman

🛠️ Technologies

  • AI Model: TensorFlow, Hugging Face
  • Dashboard: Vite, React
  • Backend: Deno, Oak
  • Authentication: Clerk
  • API Documentation: Swagger, OpenAPI 3.0
  • Containerization: Podman

🚀 Getting Started

Clone the Repository

git clone https://github.com/ss2d22/hacksussex.git
cd hacksussex

Python Server Setup

  1. Navigate to the bluesky_livedata directory:
cd bludsky_livedata
  1. Initialize conda environment:
conda env create -f bluesky.yml
  1. Set environment variable:
export GEMINI_API_KEY="<your gemini api key>"
  1. Run the server:
python sandbox.py

Deno Server Setup

server tbd

  1. Navigate to the backend directory:
cd server
  1. Create a .env file with the following variables:
PORT=your_port
MONGODB_URI=your_mongodb_uri
HUGGINGFACE_API_KEY=your_huggingface_key
CLERK_API_KEY=your_clerk_api_key
  1. Run the backend server:
deno run --allow-net --allow-read --allow-env index.ts

Running with Podman

For convenience, you can run everything using Podman:

podman-compose up --build

📚 API Documentation

The API is fully documented and compliant with OpenAPI 3.0 standards. You can view the documentation at:

View API documentation here

👥 Contact

For any queries or suggestions, please open an issue in this repository or reach out to me on Discord.


Made with ❤️ at HackSussex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors