Spaces:
Running
Running
Jose Benitez
commited on
Commit
•
c3fc33a
1
Parent(s):
0fb8049
add reqs and update readme
Browse files- README.md +53 -3
- requirements.txt +13 -0
README.md
CHANGED
@@ -1,3 +1,53 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# ObtuAI - AI-Powered Image Generation Platform
|
3 |
+
|
4 |
+
ObtuAI is an innovative platform that leverages artificial intelligence to generate and manipulate images based on user prompts and custom models.
|
5 |
+
|
6 |
+
## Features
|
7 |
+
- Image generation using AI models
|
8 |
+
- Custom model training
|
9 |
+
- User authentication with Google
|
10 |
+
- Credit system for image generation and model training
|
11 |
+
- Stripe integration for purchasing credits
|
12 |
+
|
13 |
+
## Tech Stack
|
14 |
+
- Backend: FastAPI, Python
|
15 |
+
- Frontend: Gradio
|
16 |
+
- Database: Supabase
|
17 |
+
- Authentication: Google OAuth
|
18 |
+
- Payment Processing: Stripe
|
19 |
+
- AI Models: Replicate
|
20 |
+
|
21 |
+
## Setup Instructions
|
22 |
+
|
23 |
+
1. Clone the repository
|
24 |
+
|
25 |
+
2. Install the dependencies
|
26 |
+
```bash
|
27 |
+
pip install -r requirements.txt
|
28 |
+
```
|
29 |
+
|
30 |
+
3. Rename the `.env.example` file to `.env` and fill in the required environment variables
|
31 |
+
|
32 |
+
4. Run the FastAPI server
|
33 |
+
|
34 |
+
```bash
|
35 |
+
uvicorn main:app --reload
|
36 |
+
```
|
37 |
+
|
38 |
+
The application will be available at http://127.0.0.1:8000.
|
39 |
+
|
40 |
+
## Stripe Local Testing
|
41 |
+
|
42 |
+
Run webhook locally for testing (Put your stripe on test mode and get the keys)
|
43 |
+
The code above will generate the code for the webhook
|
44 |
+
|
45 |
+
```bash
|
46 |
+
stripe listen --forward-to http://127.0.0.1:7000/webhook
|
47 |
+
```
|
48 |
+
|
49 |
+
### Use the following test card
|
50 |
+
- Name: Any
|
51 |
+
- Number: 4242 4242 4242 4242
|
52 |
+
- CVC: 123
|
53 |
+
- Date: Any future date
|
requirements.txt
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Authlib==1.3.1
|
2 |
+
fastapi==0.112.2
|
3 |
+
gradio==4.42.0
|
4 |
+
huggingface_hub==0.24.5
|
5 |
+
Pillow==10.4.0
|
6 |
+
pydantic==2.8.2
|
7 |
+
python-dotenv==1.0.1
|
8 |
+
replicate==0.31.0
|
9 |
+
Requests==2.32.3
|
10 |
+
starlette==0.38.2
|
11 |
+
stripe==10.8.0
|
12 |
+
supabase==2.7.3
|
13 |
+
uvicorn==0.30.6
|