Spaces:
Build error
Build error
novo script checkout
Browse files
app1.py
CHANGED
|
@@ -36,6 +36,7 @@ def yolox_inference(
|
|
| 36 |
#pred = model.predict(image_path=image_path, image_size=image_size)
|
| 37 |
pred2 = []
|
| 38 |
if model :
|
|
|
|
| 39 |
model.torchyolo = True
|
| 40 |
pred2 = model.predict(image_path=image_path, image_size=image_size)
|
| 41 |
#text = "Ola"
|
|
@@ -43,6 +44,7 @@ def yolox_inference(
|
|
| 43 |
#print (pred2[0])
|
| 44 |
#print (pred2[1])
|
| 45 |
#print (pred2[2])
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
tensor = {
|
|
@@ -96,4 +98,8 @@ demo_app = gr.Interface(
|
|
| 96 |
live=True,
|
| 97 |
theme='huggingface',
|
| 98 |
)
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
#pred = model.predict(image_path=image_path, image_size=image_size)
|
| 37 |
pred2 = []
|
| 38 |
if model :
|
| 39 |
+
print (image_path)
|
| 40 |
model.torchyolo = True
|
| 41 |
pred2 = model.predict(image_path=image_path, image_size=image_size)
|
| 42 |
#text = "Ola"
|
|
|
|
| 44 |
#print (pred2[0])
|
| 45 |
#print (pred2[1])
|
| 46 |
#print (pred2[2])
|
| 47 |
+
#os.remove(image_path)
|
| 48 |
|
| 49 |
|
| 50 |
tensor = {
|
|
|
|
| 98 |
live=True,
|
| 99 |
theme='huggingface',
|
| 100 |
)
|
| 101 |
+
try:
|
| 102 |
+
demo_app.launch(debug=True, server_name="192.168.0.153", server_port=8081, enable_queue=True)
|
| 103 |
+
except:
|
| 104 |
+
demo_app.close()
|
| 105 |
+
|
checkYolox.sh
CHANGED
|
@@ -9,6 +9,7 @@ if lsof -Pi :$PORT -sTCP:LISTEN -t >/dev/null ; then
|
|
| 9 |
else
|
| 10 |
./telegramCrise.sh "reiniciando_yolox_linux_192.168.0.153:8080"
|
| 11 |
pkill -f app.py
|
|
|
|
| 12 |
python app.py &
|
| 13 |
echo "not running"
|
| 14 |
fi
|
|
|
|
| 9 |
else
|
| 10 |
./telegramCrise.sh "reiniciando_yolox_linux_192.168.0.153:8080"
|
| 11 |
pkill -f app.py
|
| 12 |
+
#rm -r /tmp/tmp1*.png
|
| 13 |
python app.py &
|
| 14 |
echo "not running"
|
| 15 |
fi
|
configs/__pycache__/__init__.cpython-38.pyc
CHANGED
|
Binary files a/configs/__pycache__/__init__.cpython-38.pyc and b/configs/__pycache__/__init__.cpython-38.pyc differ
|
|
|
configs/__pycache__/yolox_s.cpython-38.pyc
CHANGED
|
Binary files a/configs/__pycache__/yolox_s.cpython-38.pyc and b/configs/__pycache__/yolox_s.cpython-38.pyc differ
|
|
|
yoloxdetect2/__pycache__/helpers.cpython-38.pyc
CHANGED
|
Binary files a/yoloxdetect2/__pycache__/helpers.cpython-38.pyc and b/yoloxdetect2/__pycache__/helpers.cpython-38.pyc differ
|
|
|
yoloxdetect2/utils/__pycache__/downloads.cpython-38.pyc
CHANGED
|
Binary files a/yoloxdetect2/utils/__pycache__/downloads.cpython-38.pyc and b/yoloxdetect2/utils/__pycache__/downloads.cpython-38.pyc differ
|
|
|