Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,7 @@
|
|
3 |
# PIL's Image, Filter, Ops, and Chops,
|
4 |
# transforms from torchvision, style never stops!
|
5 |
### 🖥️ New and Improved Application Code
|
6 |
-
This runtime error is happening because the version of the `gradio` library in your environment is older and doesn't support the `root` argument for the `gr.FileExplorer` component.
|
7 |
|
8 |
-
The fix is to simply remove the `root="."` argument. The `FileExplorer` will default to the correct directory (where the script is running) without it.
|
9 |
-
|
10 |
-
-----
|
11 |
|
12 |
## 🛠️ Correct Code
|
13 |
import numpy as np
|
|
|
3 |
# PIL's Image, Filter, Ops, and Chops,
|
4 |
# transforms from torchvision, style never stops!
|
5 |
### 🖥️ New and Improved Application Code
|
|
|
6 |
|
|
|
|
|
|
|
7 |
|
8 |
## 🛠️ Correct Code
|
9 |
import numpy as np
|