Dongjie Shi

Results 57 comments of Dongjie Shi

Hi @gtfaiwxm, as we discussed, please paste more info about the model and the input/output. thanks.

Hi @gtfaiwxm, we are testing the fix now. The fix will be merged soon. Thanks.

The response is standard json format, you can use any json lib in python to parse it: ```json { 'predictions': [ '{value=data=[0.0,1.0,0.99930465,0.2667401,0.2137495,0.51740575,0.7415706,...,0.0,0.0,0.0,0.0],shape=[1,200,7];}' ] } ``` and you will get a...

Hi @gtfaiwxm it seems like still has ' before and after the string, could you please try to remove ' in the data_temp ? data_temp = data_temp .replace("'","")

please try this: ```python import json str = " { 'predictions': [ '{value=data=[0.0,1.0,0.99930465,0.2667401,0.2137495,0.51740575,0.7415706,0.0,1.0,0.99930465,0.2667401,0.2137495,0.51740575,0.7415706],shape=[1,2,7];}' ]}" str = str.replace("\'", "\"") result = json.loads(str) predictions = result['predictions'] for prediction in predictions: prediction =...

@Litchilitchy we should add a python api to parse response to tensor results.

not yet, we are working on notebook tutorials which will show a example of json processing, after that we will add a pyton api for this.

@ManfeiBai please help to fix the issues.

> When run "bash work/start-scripts/start-spark-local-sql-sgx.sh", get this error: > py4j.protocol.Py4JJavaError: An error occurred while calling o32.json. > : org.apache.spark.sql.AnalysisException: Path does not exist: file:/examples/src/main/resources/people.json; > at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary$1.apply(DataSource.scala:558) > at org.apache.spark.sql.execution.datasources.DataSource$$anonfun$org$apache$spark$sql$execution$datasources$DataSource$$checkAndGlobPathIfNecessary$1.apply(DataSource.scala:545)...