Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import torchvision
|
|
6 |
from PIL import Image
|
7 |
from torchvision import transforms
|
8 |
|
9 |
-
|
10 |
transformer = transforms.Compose([
|
11 |
transforms.ToPILImage(),
|
12 |
transforms.Resize((224, 224)),
|
@@ -24,5 +23,4 @@ def predict(inp):
|
|
24 |
return confidences
|
25 |
|
26 |
gr.Interface(predict,inputs=gr.inputs.Image(label="Input Image"),outputs='label').launch(debug='True')
|
27 |
-
|
28 |
#gr.Interface(predict,inputs=[gr.inputs.Image(label="Input Image", source="webcam"),gr.inputs.Image(label="Input Image")],outputs='label').launch(debug='True')
|
|
|
6 |
from PIL import Image
|
7 |
from torchvision import transforms
|
8 |
|
|
|
9 |
transformer = transforms.Compose([
|
10 |
transforms.ToPILImage(),
|
11 |
transforms.Resize((224, 224)),
|
|
|
23 |
return confidences
|
24 |
|
25 |
gr.Interface(predict,inputs=gr.inputs.Image(label="Input Image"),outputs='label').launch(debug='True')
|
|
|
26 |
#gr.Interface(predict,inputs=[gr.inputs.Image(label="Input Image", source="webcam"),gr.inputs.Image(label="Input Image")],outputs='label').launch(debug='True')
|