File size: 1,247 Bytes
c3fc33a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53

# ObtuAI - AI-Powered Image Generation Platform

ObtuAI is an innovative platform that leverages artificial intelligence to generate and manipulate images based on user prompts and custom models.

## Features
- Image generation using AI models
- Custom model training
- User authentication with Google
- Credit system for image generation and model training
- Stripe integration for purchasing credits

## Tech Stack
- Backend: FastAPI, Python
- Frontend: Gradio
- Database: Supabase
- Authentication: Google OAuth
- Payment Processing: Stripe
- AI Models: Replicate

## Setup Instructions

1. Clone the repository

2. Install the dependencies
```bash
pip install -r requirements.txt
```

3. Rename the `.env.example` file to `.env` and fill in the required environment variables

4. Run the FastAPI server

```bash
uvicorn main:app --reload
```

The application will be available at http://127.0.0.1:8000.

## Stripe Local Testing

Run webhook locally for testing (Put your stripe on test mode and get the keys)
The code above will generate the code for the webhook

```bash
stripe listen --forward-to http://127.0.0.1:7000/webhook
```

### Use the following test card
- Name: Any
- Number: 4242 4242 4242 4242
- CVC: 123
- Date: Any future date