Spaces:
Sleeping
Sleeping
update description
Browse files
app.py
CHANGED
@@ -4,9 +4,6 @@ import torchvision.transforms as transforms
|
|
4 |
import torch.nn as nn
|
5 |
import numpy as np
|
6 |
|
7 |
-
def greet(name):
|
8 |
-
return "Hello " + name + "!!"
|
9 |
-
|
10 |
def predict(model, image, device):
|
11 |
# Preprocess the image
|
12 |
transform = transforms.Compose([
|
@@ -45,7 +42,7 @@ iface = gr.Interface(
|
|
45 |
gr.Image(type="pil", label="Input Image", height=512),
|
46 |
],
|
47 |
outputs=gr.Label(label="Output", show_label=False),
|
48 |
-
description="
|
49 |
examples=[
|
50 |
["examples/ten20.png"],
|
51 |
["examples/noe33.png"],
|
|
|
4 |
import torch.nn as nn
|
5 |
import numpy as np
|
6 |
|
|
|
|
|
|
|
7 |
def predict(model, image, device):
|
8 |
# Preprocess the image
|
9 |
transform = transforms.Compose([
|
|
|
42 |
gr.Image(type="pil", label="Input Image", height=512),
|
43 |
],
|
44 |
outputs=gr.Label(label="Output", show_label=False),
|
45 |
+
description="画像に映っているのが天下一品のロゴなのか、進入禁止標識なのか判別します",
|
46 |
examples=[
|
47 |
["examples/ten20.png"],
|
48 |
["examples/noe33.png"],
|