ughhh this error
Browse files- app.ipynb +135 -0
- app.py +1 -1
- images.zip +3 -0
app.ipynb
CHANGED
|
@@ -333,6 +333,141 @@
|
|
| 333 |
"metadata": {},
|
| 334 |
"output_type": "display_data"
|
| 335 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 336 |
{
|
| 337 |
"data": {
|
| 338 |
"text/html": [],
|
|
|
|
| 333 |
"metadata": {},
|
| 334 |
"output_type": "display_data"
|
| 335 |
},
|
| 336 |
+
{
|
| 337 |
+
"data": {
|
| 338 |
+
"text/html": [],
|
| 339 |
+
"text/plain": [
|
| 340 |
+
"<IPython.core.display.HTML object>"
|
| 341 |
+
]
|
| 342 |
+
},
|
| 343 |
+
"metadata": {},
|
| 344 |
+
"output_type": "display_data"
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"name": "stderr",
|
| 348 |
+
"output_type": "stream",
|
| 349 |
+
"text": [
|
| 350 |
+
"C:\\Users\\sachi\\AppData\\Roaming\\Python\\Python310\\site-packages\\fastai\\torch_core.py:263: UserWarning: 'has_mps' is deprecated, please use 'torch.backends.mps.is_built()'\n",
|
| 351 |
+
" return getattr(torch, 'has_mps', False)\n"
|
| 352 |
+
]
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"data": {
|
| 356 |
+
"text/html": [
|
| 357 |
+
"\n",
|
| 358 |
+
"<style>\n",
|
| 359 |
+
" /* Turns off some styling */\n",
|
| 360 |
+
" progress {\n",
|
| 361 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 362 |
+
" border: none;\n",
|
| 363 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 364 |
+
" background-size: auto;\n",
|
| 365 |
+
" }\n",
|
| 366 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 367 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 368 |
+
" }\n",
|
| 369 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 370 |
+
" background: #F44336;\n",
|
| 371 |
+
" }\n",
|
| 372 |
+
"</style>\n"
|
| 373 |
+
],
|
| 374 |
+
"text/plain": [
|
| 375 |
+
"<IPython.core.display.HTML object>"
|
| 376 |
+
]
|
| 377 |
+
},
|
| 378 |
+
"metadata": {},
|
| 379 |
+
"output_type": "display_data"
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"data": {
|
| 383 |
+
"text/html": [],
|
| 384 |
+
"text/plain": [
|
| 385 |
+
"<IPython.core.display.HTML object>"
|
| 386 |
+
]
|
| 387 |
+
},
|
| 388 |
+
"metadata": {},
|
| 389 |
+
"output_type": "display_data"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"name": "stderr",
|
| 393 |
+
"output_type": "stream",
|
| 394 |
+
"text": [
|
| 395 |
+
"C:\\Users\\sachi\\AppData\\Roaming\\Python\\Python310\\site-packages\\fastai\\torch_core.py:263: UserWarning: 'has_mps' is deprecated, please use 'torch.backends.mps.is_built()'\n",
|
| 396 |
+
" return getattr(torch, 'has_mps', False)\n"
|
| 397 |
+
]
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"data": {
|
| 401 |
+
"text/html": [
|
| 402 |
+
"\n",
|
| 403 |
+
"<style>\n",
|
| 404 |
+
" /* Turns off some styling */\n",
|
| 405 |
+
" progress {\n",
|
| 406 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 407 |
+
" border: none;\n",
|
| 408 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 409 |
+
" background-size: auto;\n",
|
| 410 |
+
" }\n",
|
| 411 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 412 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 413 |
+
" }\n",
|
| 414 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 415 |
+
" background: #F44336;\n",
|
| 416 |
+
" }\n",
|
| 417 |
+
"</style>\n"
|
| 418 |
+
],
|
| 419 |
+
"text/plain": [
|
| 420 |
+
"<IPython.core.display.HTML object>"
|
| 421 |
+
]
|
| 422 |
+
},
|
| 423 |
+
"metadata": {},
|
| 424 |
+
"output_type": "display_data"
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"data": {
|
| 428 |
+
"text/html": [],
|
| 429 |
+
"text/plain": [
|
| 430 |
+
"<IPython.core.display.HTML object>"
|
| 431 |
+
]
|
| 432 |
+
},
|
| 433 |
+
"metadata": {},
|
| 434 |
+
"output_type": "display_data"
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"name": "stderr",
|
| 438 |
+
"output_type": "stream",
|
| 439 |
+
"text": [
|
| 440 |
+
"C:\\Users\\sachi\\AppData\\Roaming\\Python\\Python310\\site-packages\\fastai\\torch_core.py:263: UserWarning: 'has_mps' is deprecated, please use 'torch.backends.mps.is_built()'\n",
|
| 441 |
+
" return getattr(torch, 'has_mps', False)\n"
|
| 442 |
+
]
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"data": {
|
| 446 |
+
"text/html": [
|
| 447 |
+
"\n",
|
| 448 |
+
"<style>\n",
|
| 449 |
+
" /* Turns off some styling */\n",
|
| 450 |
+
" progress {\n",
|
| 451 |
+
" /* gets rid of default border in Firefox and Opera. */\n",
|
| 452 |
+
" border: none;\n",
|
| 453 |
+
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
|
| 454 |
+
" background-size: auto;\n",
|
| 455 |
+
" }\n",
|
| 456 |
+
" progress:not([value]), progress:not([value])::-webkit-progress-bar {\n",
|
| 457 |
+
" background: repeating-linear-gradient(45deg, #7e7e7e, #7e7e7e 10px, #5c5c5c 10px, #5c5c5c 20px);\n",
|
| 458 |
+
" }\n",
|
| 459 |
+
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
|
| 460 |
+
" background: #F44336;\n",
|
| 461 |
+
" }\n",
|
| 462 |
+
"</style>\n"
|
| 463 |
+
],
|
| 464 |
+
"text/plain": [
|
| 465 |
+
"<IPython.core.display.HTML object>"
|
| 466 |
+
]
|
| 467 |
+
},
|
| 468 |
+
"metadata": {},
|
| 469 |
+
"output_type": "display_data"
|
| 470 |
+
},
|
| 471 |
{
|
| 472 |
"data": {
|
| 473 |
"text/html": [],
|
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import platform
|
|
| 2 |
import pathlib
|
| 3 |
|
| 4 |
plt = platform.system()
|
| 5 |
-
if plt == '
|
| 6 |
pathlib.WindowsPath = pathlib.PosixPath
|
| 7 |
|
| 8 |
import gradio as gr
|
|
|
|
| 2 |
import pathlib
|
| 3 |
|
| 4 |
plt = platform.system()
|
| 5 |
+
if plt == 'Linux':
|
| 6 |
pathlib.WindowsPath = pathlib.PosixPath
|
| 7 |
|
| 8 |
import gradio as gr
|
images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04f77ad793fbba8c1c98bcd573c0be6398b6811f350b042a2471f9c2b968dab0
|
| 3 |
+
size 61352
|