A web application for interfacing with Hugging Face Spaces API, designed to provide an intuitive and powerful model inference experience. The application features a split-panel interface for seamless model interaction and result visualization.
- Interactive UI for model inference
- Support for multiple Hugging Face models
- Split-panel interface for code and results
- Customizable model parameters
- Response visualization
- Authentication system
- Request history tracking
- Frontend: React, TypeScript, Tailwind CSS, shadcn/ui
- Backend: Node.js, Express
- Database: PostgreSQL with Drizzle ORM
- Authentication: Passport.js
- API Integration: Hugging Face Spaces API
This project is developed on Replit and automatically deployed to Hugging Face Spaces via GitHub Actions.
- Make changes in Replit
- Test locally
- Commit and push to GitHub
- GitHub Actions automatically deploys to Hugging Face Spaces
For more details on the integration between Replit, GitHub, and Hugging Face, see GITHUB_HUGGINGFACE_INTEGRATION.md.
- Clone this repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser to the Replit preview URL
The following environment variables are required:
DATABASE_URL
: PostgreSQL connection stringSESSION_SECRET
: Secret for session management- (Optional)
HF_API_KEY
: Default Hugging Face API key for server-side requests
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Open a pull request
MIT