Narendra9009 commited on
Commit
d1fd5c0
·
1 Parent(s): a665177

added gitignore and some api keys

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. Dockerfile +14 -0
  3. __pycache__/main.cpython-313.pyc +0 -0
  4. main.py +1 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ api_tokens
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Set the working directory in the container
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy everything from the current directory to the container
10
+ COPY . .
11
+
12
+ EXPOSE 7860
13
+
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
__pycache__/main.cpython-313.pyc CHANGED
Binary files a/__pycache__/main.cpython-313.pyc and b/__pycache__/main.cpython-313.pyc differ
 
main.py CHANGED
@@ -27,7 +27,7 @@ class DetectionResults(BaseModel):
27
  confidences: list
28
  classes: list
29
 
30
- @app.get("/")
31
  async def read_root():
32
  return {
33
  "name": "Narendra",
 
27
  confidences: list
28
  classes: list
29
 
30
+ @app.get("/test")
31
  async def read_root():
32
  return {
33
  "name": "Narendra",