Skip to content

Rohan-Yelandur/hack-tx-25

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

hack-tx-25

AI-powered Manim video generator with a React frontend and Flask backend. Devpost: https://devpost.com/software/visiomath-a18ef4

Setup Instructions

Backend Setup

  1. Navigate to the backend directory:
cd backend
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Install ffmpeg (required by Manim):

  2. Create a .env file in the backend directory:

GEMINI_API_KEY=your_api_key_here
  1. Start the Flask server:
python app.py

The backend will run on http://localhost:5000

Frontend Setup

  1. Navigate to the frontend directory:
cd frontend
  1. Install Node dependencies:
npm install
  1. Start the React development server:
npm start

The frontend will run on http://localhost:3000

Usage

  1. Make sure both backend and frontend servers are running
  2. Open http://localhost:3000 in your browser
  3. Enter a topic (e.g., "math", "physics", "shapes")
  4. Describe the animation you want in the prompt field
  5. Click "Generate Video"
  6. Wait for the video to be generated and rendered
  7. View the video and optionally inspect the generated Manim code

API Endpoints

  • POST /api/generate - Generate a video from a prompt
  • GET /api/video/<filename> - Serve video files
  • GET /api/script/<filename> - Serve script files
  • GET /api/health - Health check endpoint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors