Spaces:
Build error
Build error
ffreemt
commited on
Commit
β’
1c932ec
1
Parent(s):
bede01b
Update nodemon app.py setup
Browse files- app.py +1 -1
- nohup.out +69 -0
- run-nodemon-python-app.sh +1 -0
- run-nohup.sh +1 -0
app.py
CHANGED
@@ -3,5 +3,5 @@ import sys
|
|
3 |
from ubee import __main__
|
4 |
|
5 |
if __name__ == "__main__":
|
6 |
-
sys.exit(__main__())
|
7 |
|
|
|
3 |
from ubee import __main__
|
4 |
|
5 |
if __name__ == "__main__":
|
6 |
+
sys.exit(__main__.main())
|
7 |
|
nohup.out
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[33m[nodemon] 2.0.18[39m
|
2 |
+
[33m[nodemon] to restart at any time, enter `rs`[39m
|
3 |
+
[33m[nodemon] watching path(s): app.py ubee/**/*[39m
|
4 |
+
[33m[nodemon] watching extensions: py,json[39m
|
5 |
+
[32m[nodemon] starting `python -t py app.py`[39m
|
6 |
+
events.js:377
|
7 |
+
throw er; // Unhandled 'error' event
|
8 |
+
^
|
9 |
+
|
10 |
+
Error: EBADF: bad file descriptor, read
|
11 |
+
Emitted 'error' event on ReadStream instance at:
|
12 |
+
at internal/fs/streams.js:173:14
|
13 |
+
at FSReqCallback.wrapper [as oncomplete] (fs.js:563:5) {
|
14 |
+
errno: -9,
|
15 |
+
code: 'EBADF',
|
16 |
+
syscall: 'read'
|
17 |
+
}
|
18 |
+
python: can't open file 'py': [Errno 2] No such file or directory
|
19 |
+
[33m[nodemon] 2.0.18[39m
|
20 |
+
[33m[nodemon] to restart at any time, enter `rs`[39m
|
21 |
+
[33m[nodemon] watching path(s): app.py ubee/**/*[39m
|
22 |
+
[33m[nodemon] watching extensions: py[39m
|
23 |
+
[32m[nodemon] starting `python app.py`[39m
|
24 |
+
events.js:377
|
25 |
+
throw er; // Unhandled 'error' event
|
26 |
+
^
|
27 |
+
|
28 |
+
Error: EBADF: bad file descriptor, read
|
29 |
+
Emitted 'error' event on ReadStream instance at:
|
30 |
+
at internal/fs/streams.js:173:14
|
31 |
+
at FSReqCallback.wrapper [as oncomplete] (fs.js:563:5) {
|
32 |
+
errno: -9,
|
33 |
+
code: 'EBADF',
|
34 |
+
syscall: 'read'
|
35 |
+
}
|
36 |
+
[E 220701 19:47:16 fetch_check_aux:54]
|
37 |
+
Traceback (most recent call last):
|
38 |
+
File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
|
39 |
+
self._accessor.mkdir(self, mode)
|
40 |
+
PermissionError: [Errno 13] Permission denied: '/root/.cache/huggingface/transformers'
|
41 |
+
|
42 |
+
During handling of the above exception, another exception occurred:
|
43 |
+
|
44 |
+
Traceback (most recent call last):
|
45 |
+
File "/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/model_pool/fetch_check_aux.py", line 52, in fetch_check_aux
|
46 |
+
local_dir.mkdir(parents=True, exist_ok=True)
|
47 |
+
File "/usr/lib/python3.8/pathlib.py", line 1297, in mkdir
|
48 |
+
if not exist_ok or not self.is_dir():
|
49 |
+
File "/usr/lib/python3.8/pathlib.py", line 1422, in is_dir
|
50 |
+
return S_ISDIR(self.stat().st_mode)
|
51 |
+
File "/usr/lib/python3.8/pathlib.py", line 1198, in stat
|
52 |
+
return self._accessor.stat(self)
|
53 |
+
PermissionError: [Errno 13] Permission denied: '/root/.cache/huggingface/transformers'
|
54 |
+
[W 220701 19:47:16 fetch_check_aux:55] You will need to run this as admin or root, or create /root (C:
|
55 |
+
[W 220701 19:47:16 load_model:44] You ll need to run as root or admin or give write permission to /root/.cache/huggingface or C:
|
56 |
+
[I 220701 19:47:17 model_s:32] Fetching and caching model_s from huggingface.co... The first time may take a while depending on your net.
|
57 |
+
Subsequent loading takes ~2-3 secs ... |βββ| 1/1 [100%] in 2.9s (0.34/s)
|
58 |
+
[I 220701 19:47:20 load_model:73] Fetching and caching clas-l-user from huggingface.co... The first time may take a while depending on your net.
|
59 |
+
Subsequent loading takes ~2-3 secs ... |βββ| 1/1 [100%] in 7.8s (0.13/s)
|
60 |
+
/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
|
61 |
+
warnings.warn(value)
|
62 |
+
/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `numeric` parameter is deprecated, and it has no effect
|
63 |
+
warnings.warn(value)
|
64 |
+
/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: The 'type' parameter has been deprecated. Use the Number component instead.
|
65 |
+
warnings.warn(value)
|
66 |
+
/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `layout` parameter is deprecated, and it has no effect
|
67 |
+
warnings.warn(value)
|
68 |
+
/home/mu2018/github/ultimatumbee/.venv/lib/python3.8/site-packages/gradio/interface.py:292: UserWarning: Currently, only the 'default' theme is supported.
|
69 |
+
warnings.warn("Currently, only the 'default' theme is supported.")
|
run-nodemon-python-app.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
nodemon -e py -w app.py -w ubee -x python app.py
|
run-nohup.sh
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
nohup sh run-nodemon-python-app.sh &
|