Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from fastai.vision.all import *
|
|
2 |
import gradio as gr
|
3 |
import cv2
|
4 |
|
5 |
-
__all__ = ['is_rock', 'learn', '
|
6 |
|
7 |
def is_rock(x): return x[0].issuper()
|
8 |
|
@@ -26,5 +26,5 @@ image = gr.inputs.Image(shape=(192,192))
|
|
26 |
label = gr.outputs.Label()
|
27 |
examples = ['rock.jpg', 'paper.jpg', 'scissor.jpg']
|
28 |
|
29 |
-
intf = gr.Interface(fn = classify_images, inputs =
|
30 |
intf.launch(inline=False)
|
|
|
2 |
import gradio as gr
|
3 |
import cv2
|
4 |
|
5 |
+
__all__ = ['is_rock', 'learn', 'classify_images', 'get_webcam_image' 'categories', 'image', 'label', 'examples', 'intf']
|
6 |
|
7 |
def is_rock(x): return x[0].issuper()
|
8 |
|
|
|
26 |
label = gr.outputs.Label()
|
27 |
examples = ['rock.jpg', 'paper.jpg', 'scissor.jpg']
|
28 |
|
29 |
+
intf = gr.Interface(fn = classify_images, inputs = get_webcam_image, outputs = label, examples = examples)
|
30 |
intf.launch(inline=False)
|