Spaces:
Runtime error
Runtime error
freemt
commited on
Commit
β’
21574f0
1
Parent(s):
330bfcd
Update convbot-demo.ipynb
Browse files- convbot_demo.ipynb +98 -0
convbot_demo.ipynb
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"nbformat": 4,
|
3 |
+
"nbformat_minor": 0,
|
4 |
+
"metadata": {
|
5 |
+
"colab": {
|
6 |
+
"name": "convbot-demo.ipynb",
|
7 |
+
"provenance": [],
|
8 |
+
"collapsed_sections": []
|
9 |
+
},
|
10 |
+
"kernelspec": {
|
11 |
+
"name": "python3",
|
12 |
+
"display_name": "Python 3"
|
13 |
+
},
|
14 |
+
"language_info": {
|
15 |
+
"name": "python"
|
16 |
+
}
|
17 |
+
},
|
18 |
+
"cells": [
|
19 |
+
{
|
20 |
+
"cell_type": "code",
|
21 |
+
"metadata": {
|
22 |
+
"id": "_4zYZPqwGu0p",
|
23 |
+
"colab": {
|
24 |
+
"base_uri": "https://localhost:8080/"
|
25 |
+
},
|
26 |
+
"outputId": "e34ba0fe-6177-46be-df2f-945fd802c551"
|
27 |
+
},
|
28 |
+
"source": [
|
29 |
+
"!pip install convbot -Uq"
|
30 |
+
],
|
31 |
+
"execution_count": 1,
|
32 |
+
"outputs": [
|
33 |
+
{
|
34 |
+
"output_type": "stream",
|
35 |
+
"text": [
|
36 |
+
"\u001b[K |ββββββββββββββββββββββββββββββββ| 2.6 MB 8.4 MB/s \n",
|
37 |
+
"\u001b[K |ββββββββββββββββββββββββββββββββ| 636 kB 42.7 MB/s \n",
|
38 |
+
"\u001b[K |ββββββββββββββββββββββββββββββββ| 895 kB 45.3 MB/s \n",
|
39 |
+
"\u001b[K |ββββββββββββββββββββββββββββββββ| 3.3 MB 35.4 MB/s \n",
|
40 |
+
"\u001b[?25h"
|
41 |
+
],
|
42 |
+
"name": "stdout"
|
43 |
+
}
|
44 |
+
]
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"cell_type": "code",
|
48 |
+
"metadata": {
|
49 |
+
"id": "dx4ghM-9IQo7",
|
50 |
+
"colab": {
|
51 |
+
"base_uri": "https://localhost:8080/"
|
52 |
+
},
|
53 |
+
"outputId": "c7d19cec-492f-4239-8185-ad6df9fda8ec"
|
54 |
+
},
|
55 |
+
"source": [
|
56 |
+
"!python -m convbot"
|
57 |
+
],
|
58 |
+
"execution_count": 2,
|
59 |
+
"outputs": [
|
60 |
+
{
|
61 |
+
"output_type": "stream",
|
62 |
+
"text": [
|
63 |
+
"2021-07-24 04:23:49.978509: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudart.so.11.0\n",
|
64 |
+
"Downloading: 100% 26.0/26.0 [00:00<00:00, 14.5kB/s]\n",
|
65 |
+
"Downloading: 100% 642/642 [00:00<00:00, 358kB/s]\n",
|
66 |
+
"Downloading: 100% 1.04M/1.04M [00:00<00:00, 4.11MB/s]\n",
|
67 |
+
"Downloading: 100% 456k/456k [00:00<00:00, 3.53MB/s]\n",
|
68 |
+
"Downloading: 100% 863M/863M [00:19<00:00, 44.1MB/s]\n",
|
69 |
+
"Bot: Talk to me (type quit to exit)\n",
|
70 |
+
"You: How are you today?\n",
|
71 |
+
"Bot: I am good!\n",
|
72 |
+
"You: glad to hear that\n",
|
73 |
+
"Bot: You should be too, my friend\n",
|
74 |
+
"You: are you interested in olympic games?\n",
|
75 |
+
"Bot: Not really, just wanted to see if you'd do something different.\n",
|
76 |
+
"You: where are you from?\n",
|
77 |
+
"Bot: A little south of the border\n",
|
78 |
+
"You: ask me a question\n",
|
79 |
+
"Bot: Just be sure you're in good company\n",
|
80 |
+
"You: quit\n"
|
81 |
+
],
|
82 |
+
"name": "stdout"
|
83 |
+
}
|
84 |
+
]
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"cell_type": "code",
|
88 |
+
"metadata": {
|
89 |
+
"id": "b4tNwoflIcre"
|
90 |
+
},
|
91 |
+
"source": [
|
92 |
+
""
|
93 |
+
],
|
94 |
+
"execution_count": null,
|
95 |
+
"outputs": []
|
96 |
+
}
|
97 |
+
]
|
98 |
+
}
|