Spaces:
Configuration error
Configuration error
<<<<<<< HEAD
WikiDebate
Tagline:
"Debate anything, powered by facts β not opinions."
Generates AI-powered pro vs con debates on controversial or curious topics using data from Wikipedia, in any language.
π― MVP Features
- User inputs a topic
- Fetch factual content from Wikipedia
- Generate Pro & Con arguments using open-source LLMs (Mistral, Phi-2, Gemma)
- Multilingual debate output (LibreTranslate)
- Optional TTS (Coqui TTS or pyttsx3)
- 100% Open Source AI & APIs
π οΈ Tech Stack
- Backend: Flask
- AI Models: phi-2, mistral, or ollama (self-hosted)
- Wikipedia API: https://en.wikipedia.org/api/rest_v1/
- Translation: LibreTranslate
- Frontend: Vanilla JS + HTML (or Streamlit for quick UI)
- Hosting: Replit, Railway, or local for demo
π Project Structure
wikidebate/
βββ app.py
βββ ai/
β βββ debate_generator.py
βββ utils/
β βββ wikipedia_fetcher.py
β βββ translator.py
βββ templates/
β βββ index.html
βββ static/
β βββ style.css
βββ requirements.txt
βββ README.md
π Getting Started
- Clone the repo & setup environment
git clone <repo-url> cd wikidebate python3 -m venv venv source venv/bin/activate pip install -r requirements.txt - Run the app
flask run
π§© Step-by-Step Plan
- Setup Project
- Get Wikipedia Data
- AI-Powered Debate Generator
- Translate Output
- Flask Integration
- Frontend (Quick Sketch)
π§ͺ Bonus Features
- π£οΈ Text-to-Speech for debate in user's language
- π§ Let user vote on strongest argument
- π§ Random Wikipedia topic generator
- π Source reference links below debate
License
MIT
title: WikiDebate emoji: π colorFrom: pink colorTo: purple sdk: gradio sdk_version: 5.35.0 app_file: app.py pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
b2848a989f78d84d4e62e1f2ab47d059f0a229ed