David Kagramanyan
commited on
Commit
·
59403ae
1
Parent(s):
c1584e7
- app.py +1 -1
- classifier.ipynb +2 -3
app.py
CHANGED
@@ -25,7 +25,7 @@ def classify(input_text_message: str):
|
|
25 |
|
26 |
confidences = {labels[i]: float(prediction[i]) for i in range(3)}
|
27 |
|
28 |
-
logger.info(time.strftime("%Y.%m.%d, %H:%M:%S")+' '+'result '+confidences)
|
29 |
|
30 |
return confidences
|
31 |
|
|
|
25 |
|
26 |
confidences = {labels[i]: float(prediction[i]) for i in range(3)}
|
27 |
|
28 |
+
logger.info(time.strftime("%Y.%m.%d, %H:%M:%S")+' '+'result '+str(confidences))
|
29 |
|
30 |
return confidences
|
31 |
|
classifier.ipynb
CHANGED
@@ -52,8 +52,7 @@
|
|
52 |
"execution_count": null,
|
53 |
"id": "6db9ac824255b9f3",
|
54 |
"metadata": {
|
55 |
-
"collapsed": false
|
56 |
-
"is_executing": true
|
57 |
},
|
58 |
"outputs": [],
|
59 |
"source": [
|
@@ -70,7 +69,7 @@
|
|
70 |
"\n",
|
71 |
" confidences = {labels[i]: float(prediction[i]) for i in range(3)}\n",
|
72 |
"\n",
|
73 |
-
" logger.info(time.strftime(\"%Y.%m.%d, %H:%M:%S\")+' '+'result '+confidences)\n",
|
74 |
" \n",
|
75 |
" return confidences\n",
|
76 |
"\n",
|
|
|
52 |
"execution_count": null,
|
53 |
"id": "6db9ac824255b9f3",
|
54 |
"metadata": {
|
55 |
+
"collapsed": false
|
|
|
56 |
},
|
57 |
"outputs": [],
|
58 |
"source": [
|
|
|
69 |
"\n",
|
70 |
" confidences = {labels[i]: float(prediction[i]) for i in range(3)}\n",
|
71 |
"\n",
|
72 |
+
" logger.info(time.strftime(\"%Y.%m.%d, %H:%M:%S\")+' '+'result '+str(confidences))\n",
|
73 |
" \n",
|
74 |
" return confidences\n",
|
75 |
"\n",
|