Spaces:
Sleeping
Sleeping
Commit
·
e54458e
1
Parent(s):
9216185
Add app.py, Dockerfile, and requirements for Docker Space
Browse files- Dockerfile +15 -0
- README.md +6 -8
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use Python 3.9 as the base image
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Set working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy requirements.txt and install dependencies
|
8 |
+
COPY requirements.txt .
|
9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
+
|
11 |
+
# Copy the application code
|
12 |
+
COPY . .
|
13 |
+
|
14 |
+
# Run the FastAPI app with Uvicorn
|
15 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
-
|
8 |
-
short_description: ai text detector for iug
|
9 |
---
|
10 |
-
|
11 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: AI Text Detector
|
3 |
+
emoji: 🤖
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: green
|
6 |
sdk: docker
|
7 |
+
app_port: 7860
|
|
|
8 |
---
|
9 |
+
A FastAPI app using roberta-base-openai-detector to classify text as AI-generated or real.
|
|