ChihChiu29 commited on
Commit
2103519
1 Parent(s): 58dd603
Files changed (4) hide show
  1. .gitignore +1 -0
  2. Dockerfile +1 -1
  3. main.py +2 -1
  4. tutorial.md +3 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ __*
Dockerfile CHANGED
@@ -11,4 +11,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
14
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
 
12
  COPY . .
13
 
14
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py CHANGED
@@ -3,5 +3,6 @@ from fastapi import FastAPI
3
  app = FastAPI()
4
 
5
 
 
6
  def read_root():
7
- return {"Hello": "World!"}
 
3
  app = FastAPI()
4
 
5
 
6
+ @app.get("/")
7
  def read_root():
8
+ return {"Hello": "World!"}
tutorial.md ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ ## Use git to push changes to huggingface repository
2
+
3
+ First use `huggingface_cli.exe login` to login (follow its instruction), then use git commands for pushing.