Spaces:
Runtime error
Runtime error
Sarah Yakum
commited on
Commit
·
972723f
1
Parent(s):
84e17c7
commit
Browse files
app.py
CHANGED
|
@@ -16,6 +16,9 @@ model = SegformerForSemanticSegmentation.from_pretrained(model_name)
|
|
| 16 |
model.to(device)
|
| 17 |
|
| 18 |
|
|
|
|
|
|
|
|
|
|
| 19 |
if file_name is not None:
|
| 20 |
image = Image.open(file_name)
|
| 21 |
image.show()
|
|
|
|
| 16 |
model.to(device)
|
| 17 |
|
| 18 |
|
| 19 |
+
from datasets import load_dataset
|
| 20 |
+
from PIL import Image
|
| 21 |
+
|
| 22 |
if file_name is not None:
|
| 23 |
image = Image.open(file_name)
|
| 24 |
image.show()
|