Spaces:
Runtime error
Runtime error
Added description
Browse files- app.py +4 -3
- example8.jpg +0 -0
- example8.jpgZone.Identifier +4 -0
app.py
CHANGED
@@ -4,6 +4,7 @@ __all__ = ['learn', 'classify_image', 'categories',
|
|
4 |
import timm
|
5 |
import gradio as gr
|
6 |
from fastai.vision.all import *
|
|
|
7 |
|
8 |
TITLE = Path("docs/title.txt").read_text()
|
9 |
DESCRIPTION = Path("docs/description.md").read_text()
|
@@ -20,10 +21,10 @@ def classify_image(img):
|
|
20 |
|
21 |
image = gr.inputs.Image(shape=(192, 192))
|
22 |
label = gr.outputs.Label()
|
23 |
-
examples = ['example1.jpg', '
|
24 |
-
'
|
25 |
'example6.jpg', 'example2.jpg', 'example7.JPG']
|
26 |
|
27 |
-
intf = gr.Interface(fn=classify_image, inputs=image,
|
28 |
outputs=label, examples=examples)
|
29 |
intf.launch(inline=False)
|
|
|
4 |
import timm
|
5 |
import gradio as gr
|
6 |
from fastai.vision.all import *
|
7 |
+
import skimage
|
8 |
|
9 |
TITLE = Path("docs/title.txt").read_text()
|
10 |
DESCRIPTION = Path("docs/description.md").read_text()
|
|
|
21 |
|
22 |
image = gr.inputs.Image(shape=(192, 192))
|
23 |
label = gr.outputs.Label()
|
24 |
+
examples = ['example1.jpg', 'example5.jpg',
|
25 |
+
'example3.jpg', 'example8.jpg', 'example4.jpg',
|
26 |
'example6.jpg', 'example2.jpg', 'example7.JPG']
|
27 |
|
28 |
+
intf = gr.Interface(fn=classify_image, title=TITLE, description=DESCRIPTION, inputs=image,
|
29 |
outputs=label, examples=examples)
|
30 |
intf.launch(inline=False)
|
example8.jpg
ADDED
example8.jpgZone.Identifier
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[ZoneTransfer]
|
2 |
+
ZoneId=3
|
3 |
+
ReferrerUrl=https://www.google.com/
|
4 |
+
HostUrl=https://live.staticflickr.com/8315/27821172233_60d10cd9f1_b.jpg
|