tharu22 commited on
Commit
36fe57b
·
0 Parent(s):

file uploaded

Browse files
Files changed (4) hide show
  1. __pycache__/main.cpython-313.pyc +0 -0
  2. dockerfile +16 -0
  3. main.py +7 -0
  4. requirements.txt +41 -0
__pycache__/main.cpython-313.pyc ADDED
Binary file (410 Bytes). View file
 
dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.10-slim
5
+
6
+ WORKDIR /app
7
+
8
+ COPY ./ /app
9
+ RUN pip install -r requirements.txt
10
+
11
+ COPY . .
12
+
13
+
14
+ # Use JSON format for CMD
15
+
16
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI()
4
+
5
+ @app.get("/")
6
+ def greet_json():
7
+ return {"Hello": "World!"}
requirements.txt ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ annotated-types==0.7.0
2
+ anyio==4.8.0
3
+ certifi==2024.12.14
4
+ click==8.1.8
5
+ colorama==0.4.6
6
+ dnspython==2.7.0
7
+ email_validator==2.2.0
8
+ fastapi==0.115.7
9
+ fastapi-cli==0.0.7
10
+ google-play-scraper==1.2.7
11
+ h11==0.14.0
12
+ httpcore==1.0.7
13
+ httptools==0.6.4
14
+ httpx==0.28.1
15
+ idna==3.10
16
+ Jinja2==3.1.5
17
+ markdown-it-py==3.0.0
18
+ MarkupSafe==3.0.2
19
+ mdurl==0.1.2
20
+ numpy==2.2.2
21
+ pandas==2.2.3
22
+ pydantic==2.10.6
23
+ pydantic_core==2.27.2
24
+ Pygments==2.19.1
25
+ python-dateutil==2.9.0.post0
26
+ python-dotenv==1.0.1
27
+ python-multipart==0.0.20
28
+ pytz==2024.2
29
+ PyYAML==6.0.2
30
+ rich==13.9.4
31
+ rich-toolkit==0.13.2
32
+ shellingham==1.5.4
33
+ six==1.17.0
34
+ sniffio==1.3.1
35
+ starlette==0.45.3
36
+ typer==0.15.1
37
+ typing_extensions==4.12.2
38
+ tzdata==2025.1
39
+ uvicorn==0.34.0
40
+ watchfiles==1.0.4
41
+ websockets==14.2