ai_chatbot 0.1.6.2 → 0.1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ai_chatbot/version.rb +1 -1
- data/lib/ml_model.py +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a93ff88f75370288533bd606e7705f2ad7223b56974a81fe6967c72756b8e21
|
4
|
+
data.tar.gz: 5966c1c3aaec715819780a3ea285ac489346007bf234e759b46824c70d846fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 817bac75b5fe2949efbc8b5a4baf96fd45b85051ca2be69755c618ed4c72effc8e17174073068912651188181595e25d76f0d9b342479cb92977715a8d2c3881
|
7
|
+
data.tar.gz: e097a21eeb6f95098bf25c1159b00d6a1a05ad8a5e5379f9fceb25d5fe6d1baf02704b541aa109502d4aeb8147f7985c15ca781774ede5a1dd9c522440921b5b
|
data/lib/ai_chatbot/version.rb
CHANGED
data/lib/ml_model.py
CHANGED
@@ -10,8 +10,8 @@ import os
|
|
10
10
|
if os.path.exists("qa_model.pkl"):
|
11
11
|
with open("qa_model.pkl", "rb") as f:
|
12
12
|
model_data = pickle.load(f)
|
13
|
-
questions = model_data['questions']
|
14
|
-
answers = model_data['answers']
|
13
|
+
questions = model_data.get(['questions'],[])
|
14
|
+
answers = model_data.get(['answers'],[])
|
15
15
|
else:
|
16
16
|
questions = [
|
17
17
|
"How to create a new model in Rails?",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ai_chatbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.6.
|
4
|
+
version: 0.1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sanket
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open3
|