Spaces:
Running
Running
update app
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ import os
|
|
7 |
# Load the dataset
|
8 |
imagenet_hard_dataset = load_dataset("taesiri/imagenet-hard", split="validation")
|
9 |
|
10 |
-
# same every image on disk and save path in a list
|
11 |
-
|
12 |
os.makedirs("dataset", exist_ok=True)
|
13 |
|
14 |
list_of_images = []
|
@@ -22,5 +20,5 @@ for i in range(len(imagenet_hard_dataset)):
|
|
22 |
if __name__ == "__main__":
|
23 |
# Ensures that the App processes are safely launched on Windows
|
24 |
dataset = fo.Dataset.from_images_dir("./dataset/")
|
25 |
-
session = fo.launch_app(dataset, port=7860)
|
26 |
-
session.wait()
|
|
|
7 |
# Load the dataset
|
8 |
imagenet_hard_dataset = load_dataset("taesiri/imagenet-hard", split="validation")
|
9 |
|
|
|
|
|
10 |
os.makedirs("dataset", exist_ok=True)
|
11 |
|
12 |
list_of_images = []
|
|
|
20 |
if __name__ == "__main__":
|
21 |
# Ensures that the App processes are safely launched on Windows
|
22 |
dataset = fo.Dataset.from_images_dir("./dataset/")
|
23 |
+
session = fo.launch_app(dataset, port=7860, remote=True, address="0.0.0.0")
|
24 |
+
session.wait()
|