razakhan commited on
Commit
fd68a4d
1 Parent(s): 8c6b8e4
Files changed (1) hide show
  1. model.ipynb +384 -0
model.ipynb ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "name": "stdout",
10
+ "output_type": "stream",
11
+ "text": [
12
+ "Requirement already satisfied: transformers in e:\\coding\\anaconda\\lib\\site-packages (4.15.0)\n",
13
+ "Requirement already satisfied: filelock in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (3.0.12)\n",
14
+ "Requirement already satisfied: pyyaml>=5.1 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (5.3)\n",
15
+ "Requirement already satisfied: requests in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (2.22.0)\n",
16
+ "Requirement already satisfied: tqdm>=4.27 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (4.42.1)\n",
17
+ "Requirement already satisfied: tokenizers<0.11,>=0.10.1 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (0.10.3)\n",
18
+ "Requirement already satisfied: packaging>=20.0 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (20.1)\n",
19
+ "Requirement already satisfied: importlib-metadata; python_version < \"3.8\" in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (3.3.0)\n",
20
+ "Requirement already satisfied: sacremoses in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (0.0.46)\n",
21
+ "Requirement already satisfied: numpy>=1.17 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (1.19.2)\n",
22
+ "Requirement already satisfied: regex!=2019.12.17 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (2021.11.10)\n",
23
+ "Requirement already satisfied: huggingface-hub<1.0,>=0.1.0 in e:\\coding\\anaconda\\lib\\site-packages (from transformers) (0.2.1)\n",
24
+ "Requirement already satisfied: certifi>=2017.4.17 in e:\\coding\\anaconda\\lib\\site-packages (from requests->transformers) (2021.10.8)\n",
25
+ "Requirement already satisfied: idna<2.9,>=2.5 in e:\\coding\\anaconda\\lib\\site-packages (from requests->transformers) (2.8)\n",
26
+ "Requirement already satisfied: chardet<3.1.0,>=3.0.2 in e:\\coding\\anaconda\\lib\\site-packages (from requests->transformers) (3.0.4)\n",
27
+ "Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in e:\\coding\\anaconda\\lib\\site-packages (from requests->transformers) (1.25.8)\n",
28
+ "Requirement already satisfied: pyparsing>=2.0.2 in e:\\coding\\anaconda\\lib\\site-packages (from packaging>=20.0->transformers) (2.4.6)\n",
29
+ "Requirement already satisfied: six in e:\\coding\\anaconda\\lib\\site-packages (from packaging>=20.0->transformers) (1.14.0)\n",
30
+ "Requirement already satisfied: zipp>=0.5 in e:\\coding\\anaconda\\lib\\site-packages (from importlib-metadata; python_version < \"3.8\"->transformers) (2.2.0)\n",
31
+ "Requirement already satisfied: typing-extensions>=3.6.4; python_version < \"3.8\" in e:\\coding\\anaconda\\lib\\site-packages (from importlib-metadata; python_version < \"3.8\"->transformers) (3.7.4.3)\n",
32
+ "Requirement already satisfied: joblib in e:\\coding\\anaconda\\lib\\site-packages (from sacremoses->transformers) (0.14.1)\n",
33
+ "Requirement already satisfied: click in e:\\coding\\anaconda\\lib\\site-packages (from sacremoses->transformers) (7.0)\n"
34
+ ]
35
+ }
36
+ ],
37
+ "source": [
38
+ "!pip install transformers"
39
+ ]
40
+ },
41
+ {
42
+ "cell_type": "code",
43
+ "execution_count": 2,
44
+ "metadata": {},
45
+ "outputs": [],
46
+ "source": [
47
+ "from transformers import pipeline"
48
+ ]
49
+ },
50
+ {
51
+ "cell_type": "markdown",
52
+ "metadata": {},
53
+ "source": [
54
+ "### For text summarization"
55
+ ]
56
+ },
57
+ {
58
+ "cell_type": "code",
59
+ "execution_count": 3,
60
+ "metadata": {},
61
+ "outputs": [
62
+ {
63
+ "name": "stderr",
64
+ "output_type": "stream",
65
+ "text": [
66
+ "No model was supplied, defaulted to sshleifer/distilbart-cnn-12-6 (https://huggingface.co/sshleifer/distilbart-cnn-12-6)\n"
67
+ ]
68
+ }
69
+ ],
70
+ "source": [
71
+ "summarizer = pipeline('summarization')"
72
+ ]
73
+ },
74
+ {
75
+ "cell_type": "code",
76
+ "execution_count": 4,
77
+ "metadata": {},
78
+ "outputs": [],
79
+ "source": [
80
+ "text = \"\"\" New York (CNN)When Liana Barrientos was 23 years old, she got married in Westchester County, New York.\n",
81
+ "... A year later, she got married again in Westchester County, but to a different man and without divorcing her first husband.\n",
82
+ "... Only 18 days after that marriage, she got hitched yet again. Then, Barrientos declared \"I do\" five more times, sometimes only within two weeks of each other.\n",
83
+ "... In 2010, she married once more, this time in the Bronx. In an application for a marriage license, she stated it was her \"first and only\" marriage.\n",
84
+ "... Barrientos, now 39, is facing two criminal counts of \"offering a false instrument for filing in the first degree,\" referring to her false statements on the\n",
85
+ "... 2010 marriage license application, according to court documents.\n",
86
+ "... Prosecutors said the marriages were part of an immigration scam.\n",
87
+ "... On Friday, she pleaded not guilty at State Supreme Court in the Bronx, according to her attorney, Christopher Wright, who declined to comment further.\n",
88
+ "... After leaving court, Barrientos was arrested and charged with theft of service and criminal trespass for allegedly sneaking into the New York subway through an emergency exit, said Detective\n",
89
+ "... Annette Markowski, a police spokeswoman. In total, Barrientos has been married 10 times, with nine of her marriages occurring between 1999 and 2002.\n",
90
+ "... All occurred either in Westchester County, Long Island, New Jersey or the Bronx. She is believed to still be married to four men, and at one time, she was married to eight men at once, prosecutors say.\n",
91
+ "... Prosecutors said the immigration scam involved some of her husbands, who filed for permanent residence status shortly after the marriages.\n",
92
+ "... Any divorces happened only after such filings were approved. It was unclear whether any of the men will be prosecuted.\n",
93
+ "... The case was referred to the Bronx District Attorney\\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\\'s\n",
94
+ "... Investigation Division. Seven of the men are from so-called \"red-flagged\" countries, including Egypt, Turkey, Georgia, Pakistan and Mali.\n",
95
+ "... Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force.\n",
96
+ "... If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18.\n",
97
+ "... \"\"\""
98
+ ]
99
+ },
100
+ {
101
+ "cell_type": "code",
102
+ "execution_count": 5,
103
+ "metadata": {},
104
+ "outputs": [
105
+ {
106
+ "name": "stdout",
107
+ "output_type": "stream",
108
+ "text": [
109
+ "[{'summary_text': ' Liana Barrientos, 39, is charged with two counts of \"offering a false instrument for filing in the first degree\" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and 2002 . At one time, she was married to eight men at once, prosecutors say .'}]\n"
110
+ ]
111
+ }
112
+ ],
113
+ "source": [
114
+ "print(summarizer(text, max_length=150, min_length=50, do_sample=False))"
115
+ ]
116
+ },
117
+ {
118
+ "cell_type": "markdown",
119
+ "metadata": {},
120
+ "source": [
121
+ "### For Context based question answering"
122
+ ]
123
+ },
124
+ {
125
+ "cell_type": "code",
126
+ "execution_count": 6,
127
+ "metadata": {},
128
+ "outputs": [],
129
+ "source": [
130
+ "from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline\n",
131
+ "\n",
132
+ "model_name = \"deepset/roberta-base-squad2\"\n",
133
+ "\n",
134
+ "nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)\n",
135
+ "QA_input = {\n",
136
+ " 'question': 'Why is model conversion important?',\n",
137
+ " 'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'\n",
138
+ "}\n",
139
+ "res = nlp(QA_input)"
140
+ ]
141
+ },
142
+ {
143
+ "cell_type": "code",
144
+ "execution_count": 7,
145
+ "metadata": {},
146
+ "outputs": [
147
+ {
148
+ "name": "stdout",
149
+ "output_type": "stream",
150
+ "text": [
151
+ "{'score': 0.21171443164348602, 'start': 59, 'end': 84, 'answer': 'gives freedom to the user'}\n"
152
+ ]
153
+ }
154
+ ],
155
+ "source": [
156
+ "print(res)"
157
+ ]
158
+ },
159
+ {
160
+ "cell_type": "markdown",
161
+ "metadata": {},
162
+ "source": [
163
+ "### Using gradio"
164
+ ]
165
+ },
166
+ {
167
+ "cell_type": "code",
168
+ "execution_count": 8,
169
+ "metadata": {},
170
+ "outputs": [
171
+ {
172
+ "name": "stdout",
173
+ "output_type": "stream",
174
+ "text": [
175
+ "Requirement already satisfied: gradio in e:\\coding\\anaconda\\lib\\site-packages (2.6.4)\n",
176
+ "Requirement already satisfied: requests in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (2.22.0)\n",
177
+ "Requirement already satisfied: markdown2 in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (2.4.2)\n",
178
+ "Requirement already satisfied: Flask>=1.1.1 in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (1.1.1)\n",
179
+ "Requirement already satisfied: matplotlib in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (3.1.3)\n",
180
+ "Requirement already satisfied: flask-cachebuster in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (1.0.0)\n",
181
+ "Requirement already satisfied: numpy in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (1.19.2)\n",
182
+ "Requirement already satisfied: paramiko in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (2.7.1)\n",
183
+ "Requirement already satisfied: pydub in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (0.25.1)\n",
184
+ "Requirement already satisfied: Flask-Cors>=3.0.8 in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (3.0.10)\n",
185
+ "Requirement already satisfied: pillow in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (7.0.0)\n",
186
+ "Requirement already satisfied: pandas in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (1.0.1)\n",
187
+ "Requirement already satisfied: pycryptodome in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (3.12.0)\n",
188
+ "Requirement already satisfied: analytics-python in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (1.4.0)\n",
189
+ "Requirement already satisfied: ffmpy in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (0.3.0)\n",
190
+ "Requirement already satisfied: Flask-Login in e:\\coding\\anaconda\\lib\\site-packages (from gradio) (0.5.0)\n",
191
+ "Requirement already satisfied: chardet<3.1.0,>=3.0.2 in e:\\coding\\anaconda\\lib\\site-packages (from requests->gradio) (3.0.4)\n",
192
+ "Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in e:\\coding\\anaconda\\lib\\site-packages (from requests->gradio) (1.25.8)\n",
193
+ "Requirement already satisfied: idna<2.9,>=2.5 in e:\\coding\\anaconda\\lib\\site-packages (from requests->gradio) (2.8)\n",
194
+ "Requirement already satisfied: certifi>=2017.4.17 in e:\\coding\\anaconda\\lib\\site-packages (from requests->gradio) (2021.10.8)\n",
195
+ "Requirement already satisfied: Werkzeug>=0.15 in e:\\coding\\anaconda\\lib\\site-packages (from Flask>=1.1.1->gradio) (1.0.0)\n",
196
+ "Requirement already satisfied: itsdangerous>=0.24 in e:\\coding\\anaconda\\lib\\site-packages (from Flask>=1.1.1->gradio) (1.1.0)\n",
197
+ "Requirement already satisfied: Jinja2>=2.10.1 in e:\\coding\\anaconda\\lib\\site-packages (from Flask>=1.1.1->gradio) (2.11.1)\n",
198
+ "Requirement already satisfied: click>=5.1 in e:\\coding\\anaconda\\lib\\site-packages (from Flask>=1.1.1->gradio) (7.0)\n",
199
+ "Requirement already satisfied: kiwisolver>=1.0.1 in e:\\coding\\anaconda\\lib\\site-packages (from matplotlib->gradio) (1.1.0)\n",
200
+ "Requirement already satisfied: python-dateutil>=2.1 in e:\\coding\\anaconda\\lib\\site-packages (from matplotlib->gradio) (2.8.1)\n",
201
+ "Requirement already satisfied: cycler>=0.10 in e:\\coding\\anaconda\\lib\\site-packages (from matplotlib->gradio) (0.10.0)\n",
202
+ "Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in e:\\coding\\anaconda\\lib\\site-packages (from matplotlib->gradio) (2.4.6)\n",
203
+ "Requirement already satisfied: bcrypt>=3.1.3 in e:\\coding\\anaconda\\lib\\site-packages (from paramiko->gradio) (3.1.7)\n",
204
+ "Requirement already satisfied: cryptography>=2.5 in e:\\coding\\anaconda\\lib\\site-packages (from paramiko->gradio) (2.8)\n",
205
+ "Requirement already satisfied: pynacl>=1.0.1 in e:\\coding\\anaconda\\lib\\site-packages (from paramiko->gradio) (1.3.0)\n",
206
+ "Requirement already satisfied: Six in e:\\coding\\anaconda\\lib\\site-packages (from Flask-Cors>=3.0.8->gradio) (1.14.0)\n",
207
+ "Requirement already satisfied: pytz>=2017.2 in e:\\coding\\anaconda\\lib\\site-packages (from pandas->gradio) (2019.3)\n",
208
+ "Requirement already satisfied: backoff==1.10.0 in e:\\coding\\anaconda\\lib\\site-packages (from analytics-python->gradio) (1.10.0)\n",
209
+ "Requirement already satisfied: monotonic>=1.5 in e:\\coding\\anaconda\\lib\\site-packages (from analytics-python->gradio) (1.6)\n",
210
+ "Requirement already satisfied: MarkupSafe>=0.23 in e:\\coding\\anaconda\\lib\\site-packages (from Jinja2>=2.10.1->Flask>=1.1.1->gradio) (1.1.1)\n",
211
+ "Requirement already satisfied: setuptools in e:\\coding\\anaconda\\lib\\site-packages (from kiwisolver>=1.0.1->matplotlib->gradio) (45.2.0.post20200210)\n",
212
+ "Requirement already satisfied: cffi>=1.1 in e:\\coding\\anaconda\\lib\\site-packages (from bcrypt>=3.1.3->paramiko->gradio) (1.14.0)\n",
213
+ "Requirement already satisfied: pycparser in e:\\coding\\anaconda\\lib\\site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko->gradio) (2.19)\n"
214
+ ]
215
+ }
216
+ ],
217
+ "source": [
218
+ "!pip install gradio"
219
+ ]
220
+ },
221
+ {
222
+ "cell_type": "code",
223
+ "execution_count": 9,
224
+ "metadata": {},
225
+ "outputs": [],
226
+ "source": [
227
+ "import gradio as gr\n",
228
+ "\n",
229
+ "examples = [\n",
230
+ " [ 'Question-Answer',\n",
231
+ " '',\n",
232
+ " 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.',\n",
233
+ " 'Why is model conversion important?'\n",
234
+ " ],\n",
235
+ " [ 'Question-Answer',\n",
236
+ " '',\n",
237
+ " \"The Amazon rainforest is a moist broadleaf forest that covers most of the Amazon basin of South America\", \n",
238
+ " \"Which continent is the Amazon rainforest in?\"\n",
239
+ " ],\n",
240
+ " [ 'Question-Answer',\n",
241
+ " '',\n",
242
+ " 'I am a Programmer.',\n",
243
+ " 'Who am I?' \n",
244
+ " ]\n",
245
+ " ]\n",
246
+ "\n",
247
+ "def summarize_text(text):\n",
248
+ " summary = summarizer(text, max_length=130, min_length=30, do_sample=False)\n",
249
+ " summary = summary[0]['summary_text']\n",
250
+ " return summary\n",
251
+ "\n",
252
+ "def question_answer(context, question):\n",
253
+ " QA_input = {\n",
254
+ " 'context': context,\n",
255
+ " 'question': question\n",
256
+ " }\n",
257
+ " res = nlp(QA_input)\n",
258
+ " return (res['answer'])\n",
259
+ "\n",
260
+ "def home_func(model_choice, summ_text, qa_context, qa_question):\n",
261
+ " if model_choice==\"Text Summarizer\":\n",
262
+ " if summ_text == \"\":\n",
263
+ " return \"Input correct text to be summarized\"\n",
264
+ " return summarize_text(summ_text)\n",
265
+ " elif model_choice==\"Question-Answer\":\n",
266
+ " if qa_context == \"\" or qa_question == \"\":\n",
267
+ " return \"Choose correct Context and associated questions\"\n",
268
+ " \n",
269
+ " return question_answer(qa_context, qa_question) \n"
270
+ ]
271
+ },
272
+ {
273
+ "cell_type": "markdown",
274
+ "metadata": {},
275
+ "source": [
276
+ "### Check of above function"
277
+ ]
278
+ },
279
+ {
280
+ "cell_type": "code",
281
+ "execution_count": 11,
282
+ "metadata": {},
283
+ "outputs": [
284
+ {
285
+ "name": "stdout",
286
+ "output_type": "stream",
287
+ "text": [
288
+ "South America\n",
289
+ " Liana Barrientos, 39, is charged with two counts of \"offering a false instrument for filing in the first degree\" In total, she has been married 10 times, with nine of her marriages occurring between 1999 and 2002 . At one time, she was married to eight men at once, prosecutors say .\n"
290
+ ]
291
+ }
292
+ ],
293
+ "source": [
294
+ "print(home_func(\"Question-Answer\", \"\", examples[1][2], examples[1][3]))\n",
295
+ "print(home_func(\"Text Summarizer\", text, \"\", \"\"))"
296
+ ]
297
+ },
298
+ {
299
+ "cell_type": "code",
300
+ "execution_count": 14,
301
+ "metadata": {},
302
+ "outputs": [],
303
+ "source": [
304
+ "iface = gr.Interface(fn = home_func, \n",
305
+ " inputs = [gr.inputs.Dropdown([\"Text Summarizer\", \"Question-Answer\"], type=\"value\"), \n",
306
+ " gr.inputs.Textbox(lines=5, placeholder=\"Enter your text here...\", label=\"Text to be summarized\"),\n",
307
+ " gr.inputs.Textbox(lines=5, placeholder=\"Choose from examples\", label=\"Context\"),\n",
308
+ " gr.inputs.Textbox(lines=5, placeholder=\"Choose from examples\", label=\"Question\")],\n",
309
+ " outputs=\"text\",\n",
310
+ " examples=examples)"
311
+ ]
312
+ },
313
+ {
314
+ "cell_type": "code",
315
+ "execution_count": 15,
316
+ "metadata": {},
317
+ "outputs": [
318
+ {
319
+ "name": "stdout",
320
+ "output_type": "stream",
321
+ "text": [
322
+ "Running on local URL: http://127.0.0.1:7861/\n",
323
+ "\n",
324
+ "To create a public link, set `share=True` in `launch()`.\n"
325
+ ]
326
+ },
327
+ {
328
+ "data": {
329
+ "text/html": [
330
+ "\n",
331
+ " <iframe\n",
332
+ " width=\"900\"\n",
333
+ " height=\"500\"\n",
334
+ " src=\"http://127.0.0.1:7861/\"\n",
335
+ " frameborder=\"0\"\n",
336
+ " allowfullscreen\n",
337
+ " ></iframe>\n",
338
+ " "
339
+ ],
340
+ "text/plain": [
341
+ "<IPython.lib.display.IFrame at 0x1464937bcc8>"
342
+ ]
343
+ },
344
+ "metadata": {},
345
+ "output_type": "display_data"
346
+ },
347
+ {
348
+ "data": {
349
+ "text/plain": [
350
+ "(<Flask 'gradio.networking'>, 'http://127.0.0.1:7861/', None)"
351
+ ]
352
+ },
353
+ "execution_count": 15,
354
+ "metadata": {},
355
+ "output_type": "execute_result"
356
+ }
357
+ ],
358
+ "source": [
359
+ "iface.launch()"
360
+ ]
361
+ }
362
+ ],
363
+ "metadata": {
364
+ "kernelspec": {
365
+ "display_name": "Python 3",
366
+ "language": "python",
367
+ "name": "python3"
368
+ },
369
+ "language_info": {
370
+ "codemirror_mode": {
371
+ "name": "ipython",
372
+ "version": 3
373
+ },
374
+ "file_extension": ".py",
375
+ "mimetype": "text/x-python",
376
+ "name": "python",
377
+ "nbconvert_exporter": "python",
378
+ "pygments_lexer": "ipython3",
379
+ "version": "3.7.6"
380
+ }
381
+ },
382
+ "nbformat": 4,
383
+ "nbformat_minor": 4
384
+ }