ogirald0 commited on
Commit
6b9ab28
Β·
1 Parent(s): 3b7a61c

Added Space configuration and metadata

Browse files
Files changed (2) hide show
  1. .gitattributes +5 -0
  2. README.md +31 -54
.gitattributes CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.py text eol=lf
37
+ *.txt text eol=lf
38
+ *.md text eol=lf
39
+ .gitattributes text eol=lf
40
+ .gitignore text eol=lf
README.md CHANGED
@@ -1,66 +1,43 @@
1
- # ML/AI Models API Service
 
 
 
 
 
 
 
 
 
2
 
3
- A centralized service that hosts various machine learning and AI models using Gradio interfaces, exposed via REST APIs for external frontend clients.
4
 
5
- ## Features
6
-
7
- - Multiple ML/AI model endpoints
8
- - Gradio interfaces for each model
9
- - FastAPI backend for API exposure
10
- - Easy model management and deployment
11
- - Scalable architecture
12
-
13
- ## Setup
14
 
15
- 1. Create a virtual environment:
16
- ```bash
17
- python -m venv venv
18
- source venv/bin/activate # On Windows: venv\Scripts\activate
19
- ```
20
 
21
- 2. Install dependencies:
22
- ```bash
23
- pip install -r requirements.txt
24
- ```
25
 
26
- 3. Create a `.env` file:
27
- ```bash
28
- cp .env.example .env
29
- ```
30
 
31
- 4. Run the development server:
32
- ```bash
33
- python src/main.py
34
- ```
35
 
36
- ## Project Structure
37
 
38
- ```
39
- β”œβ”€β”€ src/
40
- β”‚ β”œβ”€β”€ main.py # Main application entry point
41
- β”‚ β”œβ”€β”€ config.py # Configuration settings
42
- β”‚ β”œβ”€β”€ models/ # ML/AI model implementations
43
- β”‚ β”‚ β”œβ”€β”€ __init__.py
44
- β”‚ β”‚ └── base.py # Base model class
45
- β”‚ β”œβ”€β”€ interfaces/ # Gradio interfaces
46
- β”‚ β”‚ └── __init__.py
47
- β”‚ └── api/ # FastAPI routes
48
- β”‚ └── __init__.py
49
- β”œβ”€β”€ tests/ # Test files
50
- β”œβ”€β”€ .env.example # Example environment variables
51
- β”œβ”€β”€ requirements.txt # Project dependencies
52
- └── README.md # This file
53
- ```
54
 
55
- ## Adding New Models
56
 
57
- 1. Add your model implementation in `src/models/`
58
- 2. Create a Gradio interface in `src/interfaces/`
59
- 3. Add API endpoints in `src/api/`
60
- 4. Register the model in `src/main.py`
61
 
62
- ## API Documentation
63
 
64
- Once the server is running, visit:
65
- - API documentation: `http://localhost:8000/docs`
66
- - Gradio interfaces: `http://localhost:8000/gradio`
 
1
+ ---
2
+ title: Oversai Text Analyzer
3
+ emoji: πŸ“
4
+ colorFrom: blue
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: 4.19.2
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
 
12
+ # Oversai Text Analyzer
13
 
14
+ A powerful text analysis tool that uses BERT-based models to analyze and classify text.
 
 
 
 
 
 
 
 
15
 
16
+ ## Features
 
 
 
 
17
 
18
+ - Text Classification
19
+ - Sentiment Analysis
20
+ - Easy-to-use Interface
 
21
 
22
+ ## Usage
 
 
 
23
 
24
+ 1. Enter your text in the input box
25
+ 2. Click submit
26
+ 3. View the analysis results
 
27
 
28
+ ## Technical Details
29
 
30
+ Built with:
31
+ - Gradio 4.19.2
32
+ - Transformers 4.38.2
33
+ - PyTorch 2.2.1
34
+ - BERT-tiny model
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ ## License
37
 
38
+ MIT License
 
 
 
39
 
40
+ ## Setup
41
 
42
+ 1. Create a virtual environment:
43
+ ```