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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "markdown",
|
| 5 |
+
"metadata": {},
|
| 6 |
+
"source": [
|
| 7 |
+
"Imports"
|
| 8 |
+
]
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"cell_type": "code",
|
| 12 |
+
"execution_count": 1,
|
| 13 |
+
"metadata": {},
|
| 14 |
+
"outputs": [],
|
| 15 |
+
"source": [
|
| 16 |
+
"import torch\n",
|
| 17 |
+
"import os\n",
|
| 18 |
+
"import random\n",
|
| 19 |
+
"import string"
|
| 20 |
+
]
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"cell_type": "markdown",
|
| 24 |
+
"metadata": {},
|
| 25 |
+
"source": [
|
| 26 |
+
"Load the model: resume_learner.pth\n",
|
| 27 |
+
"\n",
|
| 28 |
+
"This model was trained in 8/22/2022 and this is the full Learner\n",
|
| 29 |
+
"\n",
|
| 30 |
+
"If you look in the models folders, those are not the full Learners saved\n",
|
| 31 |
+
"\n",
|
| 32 |
+
"Those are a dict with keys:\n",
|
| 33 |
+
"\n",
|
| 34 |
+
" 'model': the model (weights and biases) that can be loaded with load_state_dict()\n",
|
| 35 |
+
" \n",
|
| 36 |
+
" 'opt': the optimizer"
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"cell_type": "code",
|
| 41 |
+
"execution_count": 2,
|
| 42 |
+
"metadata": {},
|
| 43 |
+
"outputs": [
|
| 44 |
+
{
|
| 45 |
+
"name": "stderr",
|
| 46 |
+
"output_type": "stream",
|
| 47 |
+
"text": [
|
| 48 |
+
"C:\\Users\\ethan\\AppData\\Local\\Temp\\ipykernel_9460\\1803318925.py:1: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.\n",
|
| 49 |
+
" model = torch.load(\"resume_learner.pth\")\n"
|
| 50 |
+
]
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"source": [
|
| 54 |
+
"model = torch.load(\"resume_learner.pth\")\n",
|
| 55 |
+
"\n",
|
| 56 |
+
"# Clear lines because there's a lot of text displayed when loading model\n",
|
| 57 |
+
"#os.system(\"cls\")"
|
| 58 |
+
]
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"cell_type": "markdown",
|
| 62 |
+
"metadata": {},
|
| 63 |
+
"source": [
|
| 64 |
+
"Here is the function to process the prediction"
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"cell_type": "code",
|
| 69 |
+
"execution_count": 3,
|
| 70 |
+
"metadata": {},
|
| 71 |
+
"outputs": [],
|
| 72 |
+
"source": [
|
| 73 |
+
"def process_info(predictions):\n",
|
| 74 |
+
" preds,_,probs = predictions\n",
|
| 75 |
+
" if preds == '2.0':\n",
|
| 76 |
+
" print(\"Is this a resume? YES\")\n",
|
| 77 |
+
" print(f\"Probability: {probs[1]}\")\n",
|
| 78 |
+
" else:\n",
|
| 79 |
+
" print(\"Is this a resume? NO\")\n",
|
| 80 |
+
" print(f\"Probability: {probs[0]}\")"
|
| 81 |
+
]
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"cell_type": "markdown",
|
| 85 |
+
"metadata": {},
|
| 86 |
+
"source": [
|
| 87 |
+
"Here is a function to generate a random paragraph with random letters as words"
|
| 88 |
+
]
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"cell_type": "code",
|
| 92 |
+
"execution_count": 4,
|
| 93 |
+
"metadata": {},
|
| 94 |
+
"outputs": [],
|
| 95 |
+
"source": [
|
| 96 |
+
"def paragraph():\n",
|
| 97 |
+
" char_list = list(string.ascii_lowercase)\n",
|
| 98 |
+
" \n",
|
| 99 |
+
" paragraph_length = random.randint(5,10)\n",
|
| 100 |
+
" paragraph = \"\"\n",
|
| 101 |
+
" for _ in range(paragraph_length):\n",
|
| 102 |
+
" sentence_length = random.randint(2,15)\n",
|
| 103 |
+
" sentence = \"\"\n",
|
| 104 |
+
" for _ in range(sentence_length): \n",
|
| 105 |
+
" word_length = random.randint(1,10)\n",
|
| 106 |
+
" word = \"\"\n",
|
| 107 |
+
" for _ in range(word_length):\n",
|
| 108 |
+
" choose_char = random.randint(0,25)\n",
|
| 109 |
+
" word += char_list[choose_char]\n",
|
| 110 |
+
" sentence += \" \" + word\n",
|
| 111 |
+
" paragraph += sentence + \".\"\n",
|
| 112 |
+
" return paragraph"
|
| 113 |
+
]
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"cell_type": "markdown",
|
| 117 |
+
"metadata": {},
|
| 118 |
+
"source": [
|
| 119 |
+
"Here is the function wrapper that takes in a string and will print out if that string is a resume or not"
|
| 120 |
+
]
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"cell_type": "code",
|
| 124 |
+
"execution_count": 5,
|
| 125 |
+
"metadata": {},
|
| 126 |
+
"outputs": [],
|
| 127 |
+
"source": [
|
| 128 |
+
"def test_model(string):\n",
|
| 129 |
+
" output = model.predict(string)\n",
|
| 130 |
+
" process_info(output)\n",
|
| 131 |
+
" print()"
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"cell_type": "markdown",
|
| 136 |
+
"metadata": {},
|
| 137 |
+
"source": [
|
| 138 |
+
"Below are some tests I made for some different generated texts"
|
| 139 |
+
]
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"cell_type": "code",
|
| 143 |
+
"execution_count": 6,
|
| 144 |
+
"metadata": {},
|
| 145 |
+
"outputs": [],
|
| 146 |
+
"source": [
|
| 147 |
+
"# Tests the random generated paragraphs\n",
|
| 148 |
+
"def test_rng():\n",
|
| 149 |
+
" print(\"Random Generated Paragraphs Test:\\n\")\n",
|
| 150 |
+
" for i in range(10):\n",
|
| 151 |
+
" print(f\"Paragraph {i}:\")\n",
|
| 152 |
+
" p = paragraph()\n",
|
| 153 |
+
" print(p)\n",
|
| 154 |
+
"\n",
|
| 155 |
+
" test_model(p)"
|
| 156 |
+
]
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"cell_type": "code",
|
| 160 |
+
"execution_count": 7,
|
| 161 |
+
"metadata": {},
|
| 162 |
+
"outputs": [],
|
| 163 |
+
"source": [
|
| 164 |
+
"# Tests resumes that were generated by chatgpt\n",
|
| 165 |
+
"def test_chatgpt():\n",
|
| 166 |
+
" print(\"ChatGPT generated resumes in test_resumes folder:\\n\")\n",
|
| 167 |
+
" for i in range(1,10):\n",
|
| 168 |
+
" fname = \"test_resumes/test_resume\" + str(i) + \".txt\"\n",
|
| 169 |
+
" print(fname + \":\")\n",
|
| 170 |
+
" file = open(fname)\n",
|
| 171 |
+
" text = file.read()\n",
|
| 172 |
+
"\n",
|
| 173 |
+
" test_model(text)\n",
|
| 174 |
+
"\n",
|
| 175 |
+
" file.close()"
|
| 176 |
+
]
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"cell_type": "code",
|
| 180 |
+
"execution_count": 8,
|
| 181 |
+
"metadata": {},
|
| 182 |
+
"outputs": [],
|
| 183 |
+
"source": [
|
| 184 |
+
"# Tests weird cases where it thinks a few words is a resume\n",
|
| 185 |
+
"def test_weird():\n",
|
| 186 |
+
" print(\"Some weird cases:\\n\")\n",
|
| 187 |
+
"\n",
|
| 188 |
+
" test = \"hi there lol ok\"\n",
|
| 189 |
+
" print(test + \":\")\n",
|
| 190 |
+
" test_model(test)\n",
|
| 191 |
+
"\n",
|
| 192 |
+
" test = \"adfp f d\"\n",
|
| 193 |
+
" print(test + \":\")\n",
|
| 194 |
+
" test_model(test)\n",
|
| 195 |
+
"\n",
|
| 196 |
+
" test = \"lolcode argh\"\n",
|
| 197 |
+
" print(test + \":\")\n",
|
| 198 |
+
" test_model(test)\n",
|
| 199 |
+
"\n",
|
| 200 |
+
" test = \"testing 123\"\n",
|
| 201 |
+
" print(test + \":\")\n",
|
| 202 |
+
" test_model(test)"
|
| 203 |
+
]
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"cell_type": "markdown",
|
| 207 |
+
"metadata": {},
|
| 208 |
+
"source": [
|
| 209 |
+
"Now we run the tests"
|
| 210 |
+
]
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"cell_type": "code",
|
| 214 |
+
"execution_count": 9,
|
| 215 |
+
"metadata": {},
|
| 216 |
+
"outputs": [
|
| 217 |
+
{
|
| 218 |
+
"name": "stdout",
|
| 219 |
+
"output_type": "stream",
|
| 220 |
+
"text": [
|
| 221 |
+
"Some weird cases:\n",
|
| 222 |
+
"\n",
|
| 223 |
+
"hi there lol ok:\n"
|
| 224 |
+
]
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"data": {
|
| 228 |
+
"text/html": [
|
| 229 |
+
"\n",
|
| 230 |
+
"<style>\n",
|
| 231 |
+
" /* Turns off some styling */\n",
|
| 232 |
+
" progress {\n",
|
| 233 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 234 |
+
" border: none;\n",
|
| 235 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 236 |
+
" background-size: auto;\n",
|
| 237 |
+
" }\n",
|
| 238 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 239 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 240 |
+
" }\n",
|
| 241 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 242 |
+
" background: #F44336;\n",
|
| 243 |
+
" }\n",
|
| 244 |
+
"</style>\n"
|
| 245 |
+
],
|
| 246 |
+
"text/plain": [
|
| 247 |
+
"<IPython.core.display.HTML object>"
|
| 248 |
+
]
|
| 249 |
+
},
|
| 250 |
+
"metadata": {},
|
| 251 |
+
"output_type": "display_data"
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"data": {
|
| 255 |
+
"text/html": [],
|
| 256 |
+
"text/plain": [
|
| 257 |
+
"<IPython.core.display.HTML object>"
|
| 258 |
+
]
|
| 259 |
+
},
|
| 260 |
+
"metadata": {},
|
| 261 |
+
"output_type": "display_data"
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"name": "stdout",
|
| 265 |
+
"output_type": "stream",
|
| 266 |
+
"text": [
|
| 267 |
+
"Is this a resume? YES\n",
|
| 268 |
+
"Probability: 0.7741007804870605\n",
|
| 269 |
+
"\n",
|
| 270 |
+
"adfp f d:\n"
|
| 271 |
+
]
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"data": {
|
| 275 |
+
"text/html": [
|
| 276 |
+
"\n",
|
| 277 |
+
"<style>\n",
|
| 278 |
+
" /* Turns off some styling */\n",
|
| 279 |
+
" progress {\n",
|
| 280 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 281 |
+
" border: none;\n",
|
| 282 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 283 |
+
" background-size: auto;\n",
|
| 284 |
+
" }\n",
|
| 285 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 286 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 287 |
+
" }\n",
|
| 288 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 289 |
+
" background: #F44336;\n",
|
| 290 |
+
" }\n",
|
| 291 |
+
"</style>\n"
|
| 292 |
+
],
|
| 293 |
+
"text/plain": [
|
| 294 |
+
"<IPython.core.display.HTML object>"
|
| 295 |
+
]
|
| 296 |
+
},
|
| 297 |
+
"metadata": {},
|
| 298 |
+
"output_type": "display_data"
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"data": {
|
| 302 |
+
"text/html": [],
|
| 303 |
+
"text/plain": [
|
| 304 |
+
"<IPython.core.display.HTML object>"
|
| 305 |
+
]
|
| 306 |
+
},
|
| 307 |
+
"metadata": {},
|
| 308 |
+
"output_type": "display_data"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"name": "stdout",
|
| 312 |
+
"output_type": "stream",
|
| 313 |
+
"text": [
|
| 314 |
+
"Is this a resume? NO\n",
|
| 315 |
+
"Probability: 0.6239883303642273\n",
|
| 316 |
+
"\n",
|
| 317 |
+
"lolcode argh:\n"
|
| 318 |
+
]
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"data": {
|
| 322 |
+
"text/html": [
|
| 323 |
+
"\n",
|
| 324 |
+
"<style>\n",
|
| 325 |
+
" /* Turns off some styling */\n",
|
| 326 |
+
" progress {\n",
|
| 327 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 328 |
+
" border: none;\n",
|
| 329 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 330 |
+
" background-size: auto;\n",
|
| 331 |
+
" }\n",
|
| 332 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 333 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 334 |
+
" }\n",
|
| 335 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 336 |
+
" background: #F44336;\n",
|
| 337 |
+
" }\n",
|
| 338 |
+
"</style>\n"
|
| 339 |
+
],
|
| 340 |
+
"text/plain": [
|
| 341 |
+
"<IPython.core.display.HTML object>"
|
| 342 |
+
]
|
| 343 |
+
},
|
| 344 |
+
"metadata": {},
|
| 345 |
+
"output_type": "display_data"
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"data": {
|
| 349 |
+
"text/html": [],
|
| 350 |
+
"text/plain": [
|
| 351 |
+
"<IPython.core.display.HTML object>"
|
| 352 |
+
]
|
| 353 |
+
},
|
| 354 |
+
"metadata": {},
|
| 355 |
+
"output_type": "display_data"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"name": "stdout",
|
| 359 |
+
"output_type": "stream",
|
| 360 |
+
"text": [
|
| 361 |
+
"Is this a resume? YES\n",
|
| 362 |
+
"Probability: 0.8041706681251526\n",
|
| 363 |
+
"\n",
|
| 364 |
+
"testing 123:\n"
|
| 365 |
+
]
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"data": {
|
| 369 |
+
"text/html": [
|
| 370 |
+
"\n",
|
| 371 |
+
"<style>\n",
|
| 372 |
+
" /* Turns off some styling */\n",
|
| 373 |
+
" progress {\n",
|
| 374 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 375 |
+
" border: none;\n",
|
| 376 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 377 |
+
" background-size: auto;\n",
|
| 378 |
+
" }\n",
|
| 379 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 380 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 381 |
+
" }\n",
|
| 382 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 383 |
+
" background: #F44336;\n",
|
| 384 |
+
" }\n",
|
| 385 |
+
"</style>\n"
|
| 386 |
+
],
|
| 387 |
+
"text/plain": [
|
| 388 |
+
"<IPython.core.display.HTML object>"
|
| 389 |
+
]
|
| 390 |
+
},
|
| 391 |
+
"metadata": {},
|
| 392 |
+
"output_type": "display_data"
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"data": {
|
| 396 |
+
"text/html": [],
|
| 397 |
+
"text/plain": [
|
| 398 |
+
"<IPython.core.display.HTML object>"
|
| 399 |
+
]
|
| 400 |
+
},
|
| 401 |
+
"metadata": {},
|
| 402 |
+
"output_type": "display_data"
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"name": "stdout",
|
| 406 |
+
"output_type": "stream",
|
| 407 |
+
"text": [
|
| 408 |
+
"Is this a resume? YES\n",
|
| 409 |
+
"Probability: 0.7747318744659424\n",
|
| 410 |
+
"\n"
|
| 411 |
+
]
|
| 412 |
+
}
|
| 413 |
+
],
|
| 414 |
+
"source": [
|
| 415 |
+
"#test_rng()\n",
|
| 416 |
+
"#test_chatgpt()\n",
|
| 417 |
+
"test_weird()"
|
| 418 |
+
]
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"cell_type": "markdown",
|
| 422 |
+
"metadata": {},
|
| 423 |
+
"source": [
|
| 424 |
+
"Can do other tests down here"
|
| 425 |
+
]
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"cell_type": "code",
|
| 429 |
+
"execution_count": 10,
|
| 430 |
+
"metadata": {},
|
| 431 |
+
"outputs": [
|
| 432 |
+
{
|
| 433 |
+
"name": "stdout",
|
| 434 |
+
"output_type": "stream",
|
| 435 |
+
"text": [
|
| 436 |
+
"Testing test.txt\n"
|
| 437 |
+
]
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"data": {
|
| 441 |
+
"text/html": [
|
| 442 |
+
"\n",
|
| 443 |
+
"<style>\n",
|
| 444 |
+
" /* Turns off some styling */\n",
|
| 445 |
+
" progress {\n",
|
| 446 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 447 |
+
" border: none;\n",
|
| 448 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 449 |
+
" background-size: auto;\n",
|
| 450 |
+
" }\n",
|
| 451 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 452 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 453 |
+
" }\n",
|
| 454 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 455 |
+
" background: #F44336;\n",
|
| 456 |
+
" }\n",
|
| 457 |
+
"</style>\n"
|
| 458 |
+
],
|
| 459 |
+
"text/plain": [
|
| 460 |
+
"<IPython.core.display.HTML object>"
|
| 461 |
+
]
|
| 462 |
+
},
|
| 463 |
+
"metadata": {},
|
| 464 |
+
"output_type": "display_data"
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"data": {
|
| 468 |
+
"text/html": [],
|
| 469 |
+
"text/plain": [
|
| 470 |
+
"<IPython.core.display.HTML object>"
|
| 471 |
+
]
|
| 472 |
+
},
|
| 473 |
+
"metadata": {},
|
| 474 |
+
"output_type": "display_data"
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"name": "stdout",
|
| 478 |
+
"output_type": "stream",
|
| 479 |
+
"text": [
|
| 480 |
+
"Is this a resume? NO\n",
|
| 481 |
+
"Probability: 0.9999693632125854\n",
|
| 482 |
+
"\n"
|
| 483 |
+
]
|
| 484 |
+
}
|
| 485 |
+
],
|
| 486 |
+
"source": [
|
| 487 |
+
"print(\"Testing test.txt\")\n",
|
| 488 |
+
"f = open('test.txt')\n",
|
| 489 |
+
"text = f.read()\n",
|
| 490 |
+
"test_model(text)"
|
| 491 |
+
]
|
| 492 |
+
}
|
| 493 |
+
],
|
| 494 |
+
"metadata": {
|
| 495 |
+
"kernelspec": {
|
| 496 |
+
"display_name": "Python 3",
|
| 497 |
+
"language": "python",
|
| 498 |
+
"name": "python3"
|
| 499 |
+
},
|
| 500 |
+
"language_info": {
|
| 501 |
+
"codemirror_mode": {
|
| 502 |
+
"name": "ipython",
|
| 503 |
+
"version": 3
|
| 504 |
+
},
|
| 505 |
+
"file_extension": ".py",
|
| 506 |
+
"mimetype": "text/x-python",
|
| 507 |
+
"name": "python",
|
| 508 |
+
"nbconvert_exporter": "python",
|
| 509 |
+
"pygments_lexer": "ipython3",
|
| 510 |
+
"version": "3.12.7"
|
| 511 |
+
}
|
| 512 |
+
},
|
| 513 |
+
"nbformat": 4,
|
| 514 |
+
"nbformat_minor": 2
|
| 515 |
+
}
|
resume_learner.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5202d8fd7ee9be93b463ce14cb02f2089cd003e7c94bb7792f27ff9ccc579a5
|
| 3 |
+
size 595815570
|
test.txt
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
UNITED STATES DISTRICT COURT
|
| 55 |
+
|
| 56 |
+
FOR THE NORTHERN DISTRICT OF ILLINOIS
|
| 57 |
+
|
| 58 |
+
EASTERN DIVISION
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
ART ASK AGENCY, )
|
| 63 |
+
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
Plaintiff, ) Case No. 20-cv-1666
|
| 67 |
+
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
v. ) Hon. Steven C. Seeger
|
| 71 |
+
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
THE INDIVIDUALS, CORPORATIONS, )
|
| 75 |
+
|
| 76 |
+
LIMITED LIABILITY COMPANIES, )
|
| 77 |
+
|
| 78 |
+
PARTNERSHIPS AND )
|
| 79 |
+
|
| 80 |
+
UNINCORPORATED ASSOCIATIONS )
|
| 81 |
+
|
| 82 |
+
IDENTIFIED ON SCHEDULE A )
|
| 83 |
+
|
| 84 |
+
HERETO, )
|
| 85 |
+
|
| 86 |
+
)
|
| 87 |
+
|
| 88 |
+
Defendants. )
|
| 89 |
+
|
| 90 |
+
____________________________________)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
ORDER
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
Meanwhile, the world is in the midst of a global pandemic. The President has declared a
|
| 100 |
+
|
| 101 |
+
national emergency. The Governor has issued a state-wide health emergency. As things stand,
|
| 102 |
+
|
| 103 |
+
the government has forced all restaurants and bars in Chicago to shut their doors, and the schools
|
| 104 |
+
|
| 105 |
+
are closed, too. The government has encouraged everyone to stay home, to keep infections to a
|
| 106 |
+
|
| 107 |
+
minimum and help contain the fast-developing public health emergency.
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
The United States District Court for the Northern District of Illinois took action last week
|
| 112 |
+
|
| 113 |
+
to protect the public, issuing General Order No. 20-0012 entitled IN RE: CORONAVIRUS
|
| 114 |
+
|
| 115 |
+
COVID-19 PUBLIC EMERGENCY. See www.ilnd.uscourts.gov (last visited March 16, 2020)
|
| 116 |
+
|
| 117 |
+
(bold and all caps in original). On March 16, the Executive Committee issued an amended Order
|
| 118 |
+
|
| 119 |
+
that, among other things, holds all civil litigation in abeyance. Id.
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
Last week, Plaintiff filed a motion for a temporary restraining order (Dckt. No. 11)
|
| 124 |
+
|
| 125 |
+
against the Defendants (who are located abroad) and requested a hearing. See Dckt. No. 1, at
|
| 126 |
+
|
| 127 |
+
¶ 12. This Court thought that it was a bad time to hold a hearing on the motion. So, this Court
|
| 128 |
+
|
| 129 |
+
Case: 1:20-cv-01666 Document #: 27 Filed: 03/18/20 Page 1 of 3 PageID #:2438
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
2
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
moved the hearing by a few weeks to protect the health and safety of our community, including
|
| 137 |
+
|
| 138 |
+
counsel and this Court’s staff. See Dckt. No. 19. Waiting a few weeks seemed prudent.
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
Plaintiff has not demonstrated that it will suffer an irreparable injury from waiting a few
|
| 143 |
+
|
| 144 |
+
weeks. At worst, Defendants might sell a few more counterfeit products in the meantime. But
|
| 145 |
+
|
| 146 |
+
Plaintiff makes no showing about the anticipated loss of sales. One wonders if the fake fantasy
|
| 147 |
+
|
| 148 |
+
products are experiencing brisk sales at the moment.
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
In response, Plaintiff Art Ask Agency and its counsel filed a motion for reconsideration.
|
| 154 |
+
|
| 155 |
+
See Dckt. No. 20. They ask this Court to re-think its scheduling order. They want a hearing this
|
| 156 |
+
|
| 157 |
+
week (telephonically if need be).
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
The world is facing a real emergency. Plaintiff is not. The motion to reconsider the
|
| 162 |
+
|
| 163 |
+
scheduling order is denied.
|
| 164 |
+
|
| 165 |
+
Case: 1:20-cv-01666 Document #: 27 Filed: 03/18/20 Page 2 of 3 PageID #:2439
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
3
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
Date: March 18, 2020
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
Steven C. Seeger
|
| 179 |
+
|
| 180 |
+
United States District Judge
|
| 181 |
+
|
| 182 |
+
Case: 1:20-cv-01666 Document #: 27 Filed: 03/18/20 Page 3 of 3 PageID #:2440
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
"
|