Kimilhee commited on
Commit
5d2a977
·
1 Parent(s): 1782358

실행 스크립트 추가.

Browse files
Files changed (5) hide show
  1. README.md +12 -0
  2. app.py +1 -1
  3. run-service.sh +2 -0
  4. run.sh +0 -2
  5. tail-service.sh +2 -0
README.md CHANGED
@@ -17,3 +17,15 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
17
  ```bash
18
  uvicorn main:app --host 0.0.0.0 --port 8000 --reload
19
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ```bash
18
  uvicorn main:app --host 0.0.0.0 --port 8000 --reload
19
  ```
20
+
21
+ run-service.sh 로 띄웠을 때 로그 확인.
22
+
23
+ ```bash
24
+ tail -f nohup.out
25
+ ```
26
+
27
+ nohup.out 파일 지우기.
28
+
29
+ ```bash
30
+ > nohup.out
31
+ ```
app.py CHANGED
@@ -488,7 +488,7 @@ def setup_demo():
488
  preview=True,
489
  allow_preview=True,
490
  interactive=False,
491
- height=768,
492
  )
493
 
494
  @entryListGallery.select(outputs=selectedImageIndex)
 
488
  preview=True,
489
  allow_preview=True,
490
  interactive=False,
491
+ # height=768,
492
  )
493
 
494
  @entryListGallery.select(outputs=selectedImageIndex)
run-service.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #!/bin/bash
2
+ nohup uvicorn main:app --host 0.0.0.0 --port 8000 &
run.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/bin/bash
2
- uvicorn main:app --host 0.0.0.0 --port 8000
 
 
 
tail-service.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ #!/bin/bash
2
+ tail -f nohup.out