Spaces:
Sleeping
Sleeping
Added Space configuration and metadata
Browse files- .gitattributes +5 -0
- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
|
| 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 |
-
|
| 16 |
-
```bash
|
| 17 |
-
python -m venv venv
|
| 18 |
-
source venv/bin/activate # On Windows: venv\Scripts\activate
|
| 19 |
-
```
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
```
|
| 25 |
|
| 26 |
-
|
| 27 |
-
```bash
|
| 28 |
-
cp .env.example .env
|
| 29 |
-
```
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
```
|
| 35 |
|
| 36 |
-
##
|
| 37 |
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 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 |
-
##
|
| 56 |
|
| 57 |
-
|
| 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 |
-
##
|
| 63 |
|
| 64 |
-
|
| 65 |
-
|
| 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 |
+
```
|
|
|