mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-09-05 21:21:50 +00:00
Fix openvino example yaml file bug
Signed-off-by: Qi Zheng <qi.zheng@intel.com>
This commit is contained in:
@@ -4,8 +4,6 @@ metadata:
|
||||
name: server
|
||||
data:
|
||||
app.py: |
|
||||
#!/usr/bin/python3
|
||||
|
||||
import subprocess
|
||||
from flask import Flask, request
|
||||
app = Flask(__name__)
|
||||
@@ -19,7 +17,7 @@ data:
|
||||
if request.headers['Content-Type'] == 'application/octet-stream':
|
||||
f = open('./image', 'wb')
|
||||
f.write(request.data)
|
||||
return subprocess.check_output("classification_sample_async -i cat.bmp -m $MODEL_PATH/$MODEL_NAME.xml", shell=True)
|
||||
return subprocess.check_output("classification_sample_async -i ./image -m $MODEL_PATH/$MODEL_NAME.xml", shell=True)
|
||||
else:
|
||||
return "415 Unsupported Media Type ;)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user