latest fix
Browse files- .env-example +1 -1
- README.md +21 -0
- app.py +0 -3
.env-example
CHANGED
|
@@ -31,4 +31,4 @@ MY_SECRET_TOKEN="SECRET_CODE_TOKEN"
|
|
| 31 |
# LLM_TEMPERATURE=0.1
|
| 32 |
|
| 33 |
# Maximum tokens for response
|
| 34 |
-
# LLM_MAX_TOKENS=4096
|
|
|
|
| 31 |
# LLM_TEMPERATURE=0.1
|
| 32 |
|
| 33 |
# Maximum tokens for response
|
| 34 |
+
# LLM_MAX_TOKENS=4096
|
README.md
CHANGED
|
@@ -9,6 +9,22 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
# AI-Contain-Checker
|
| 13 |
# AI-Content-Checker
|
| 14 |
|
|
@@ -124,6 +140,11 @@ AI-Checker/
|
|
| 124 |
|
| 125 |
1. **Install dependencies**
|
| 126 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
```bash
|
| 128 |
pip install -r requirements.txt
|
| 129 |
```
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Testing AI Contain
|
| 13 |
+
|
| 14 |
+
This Hugging Face Space uses **Docker** to run a custom environment for AI content detection.
|
| 15 |
+
|
| 16 |
+
## How to run locally
|
| 17 |
+
---
|
| 18 |
+
title: Testing AI Contain
|
| 19 |
+
emoji: 🤖
|
| 20 |
+
colorFrom: blue
|
| 21 |
+
colorTo: green
|
| 22 |
+
sdk: docker
|
| 23 |
+
sdk_version: "latest"
|
| 24 |
+
app_file: app.py
|
| 25 |
+
pinned: false
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
# AI-Contain-Checker
|
| 29 |
# AI-Content-Checker
|
| 30 |
|
|
|
|
| 140 |
|
| 141 |
1. **Install dependencies**
|
| 142 |
|
| 143 |
+
```bash
|
| 144 |
+
docker build -t testing-ai-contain .
|
| 145 |
+
docker run -p 7860:7860 testing-ai-contain
|
| 146 |
+
|
| 147 |
+
```
|
| 148 |
```bash
|
| 149 |
pip install -r requirements.txt
|
| 150 |
```
|
app.py
CHANGED
|
@@ -11,7 +11,6 @@ from features.nepali_text_classifier.routes import (
|
|
| 11 |
)
|
| 12 |
from features.image_classifier.routes import router as image_classifier_router
|
| 13 |
from features.image_edit_detector.routes import router as image_edit_detector_router
|
| 14 |
-
from features.rag_chatbot.routes import router as rag_router
|
| 15 |
from fastapi.staticfiles import StaticFiles
|
| 16 |
|
| 17 |
from config import ACCESS_RATE
|
|
@@ -42,8 +41,6 @@ app.include_router(text_classifier_router, prefix="/text")
|
|
| 42 |
app.include_router(nepali_text_classifier_router, prefix="/NP")
|
| 43 |
app.include_router(image_classifier_router, prefix="/AI-image")
|
| 44 |
app.include_router(image_edit_detector_router, prefix="/detect")
|
| 45 |
-
app.include_router(rag_router, prefix="/rag")
|
| 46 |
-
|
| 47 |
|
| 48 |
|
| 49 |
@app.get("/")
|
|
|
|
| 11 |
)
|
| 12 |
from features.image_classifier.routes import router as image_classifier_router
|
| 13 |
from features.image_edit_detector.routes import router as image_edit_detector_router
|
|
|
|
| 14 |
from fastapi.staticfiles import StaticFiles
|
| 15 |
|
| 16 |
from config import ACCESS_RATE
|
|
|
|
| 41 |
app.include_router(nepali_text_classifier_router, prefix="/NP")
|
| 42 |
app.include_router(image_classifier_router, prefix="/AI-image")
|
| 43 |
app.include_router(image_edit_detector_router, prefix="/detect")
|
|
|
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
@app.get("/")
|