deepsite-v2 / README.md
smirkd's picture
Configure custom UIGENT-30B model endpoint
ddff1e8
metadata
title: DeepSite v2
emoji: 🐳
colorFrom: blue
colorTo: blue
sdk: docker
pinned: true
app_port: 3000
license: mit
short_description: Generate any application with UIGENT-30B
models:
  - Tesslate/UIGENT-30B-3A-Preview

DeepSite 🐳

DeepSite is a coding platform powered by UIGENT-30B AI, designed to make coding smarter and more efficient. Tailored for developers, data scientists, and AI engineers, it integrates generative AI into your coding projects to enhance creativity and productivity.

Hugging Face Spaces Setup

This Space is configured to use a custom model endpoint. To set up your own instance:

Required Environment Variables (Secrets)

In your Hugging Face Space settings, add the following secrets:

  1. CUSTOM_MODEL_ENDPOINT (required - set as secret)

    • The OpenAI-compatible endpoint for your custom model
    • Example: https://your-endpoint.com/v1
    • Important: This should be set as a Hugging Face Space secret, not in the code
  2. CUSTOM_MODEL_API_KEY (set as secret)

    • Your API key for authenticating with the custom model endpoint
    • Leave empty if no authentication is required
    • Important: This should be set as a Hugging Face Space secret, not in the code
  3. MONGODB_URI (required)

    • Your MongoDB connection string for storing projects and user data
    • Example: mongodb+srv://user:[email protected]/deepsite

How to Add Secrets

  1. Go to your Space settings
  2. Navigate to "Repository secrets"
  3. Add each secret with its corresponding value
  4. The Space will automatically restart with the new configuration

How to use it locally

Follow this discussion

Local Setup

  1. Clone the repository
  2. Copy .env.example to .env and fill in your values:
    cp .env.example .env
    
  3. Install dependencies:
    npm install
    
  4. Run the development server:
    npm run dev
    
  5. Open http://localhost:3000 in your browser

Environment Variables for Local Development

See .env.example for all required environment variables.