Spaces:
Sleeping
Sleeping
abhijitkumarjha88192
commited on
Commit
•
8bf294e
1
Parent(s):
7487ea3
initial change for test
Browse files- .dockerignore +4 -0
- .gitignore +4 -0
- Dockerfile +1 -1
- README.md +1 -1
- main.py +1 -1
- requirements.txt +3 -7
.dockerignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__/**
|
2 |
+
**/__pycache__/**
|
3 |
+
env/**
|
4 |
+
.env
|
.gitignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
__pycache__/**
|
2 |
+
**/__pycache__/**
|
3 |
+
env/**
|
4 |
+
.env
|
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
1 |
+
FROM python:3.12.3-slim
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: Fastapi
|
3 |
emoji: 🐢
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
|
|
1 |
---
|
2 |
+
title: WebUI Fastapi
|
3 |
emoji: 🐢
|
4 |
colorFrom: purple
|
5 |
colorTo: blue
|
main.py
CHANGED
@@ -4,4 +4,4 @@ app = FastAPI()
|
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
-
return {"Hello": "World!"}
|
|
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
+
return {"Hello": "World! this is webui fastapi"}
|
requirements.txt
CHANGED
@@ -1,7 +1,3 @@
|
|
1 |
-
fastapi
|
2 |
-
requests
|
3 |
-
|
4 |
-
torch==1.11.*
|
5 |
-
transformers==4.*
|
6 |
-
uvicorn[standard]==0.17.*
|
7 |
-
|
|
|
1 |
+
fastapi
|
2 |
+
requests
|
3 |
+
uvicorn
|
|
|
|
|
|
|
|