Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: Matt
|
3 |
emoji: 🐢
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
|
|
1 |
---
|
2 |
+
title: Matt-or-Meth-Damon
|
3 |
emoji: 🐢
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
|
|
3 |
learn = load_learner('model.pkl')
|
4 |
|
5 |
|
@@ -14,9 +15,10 @@ def classify_image(img):
|
|
14 |
image = gr.inputs.Image(shape=(192, 192))
|
15 |
label = gr.outputs.Label()
|
16 |
|
17 |
-
examples = ['matt damon.jpg', 'jesse.jpeg','matt damon 2.webp','jesse 2.jpeg',
|
|
|
18 |
|
19 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
20 |
outputs=label, examples=examples)
|
21 |
|
22 |
-
intf.launch(inline=False)
|
|
|
1 |
from fastai.vision.all import *
|
2 |
import gradio as gr
|
3 |
+
|
4 |
learn = load_learner('model.pkl')
|
5 |
|
6 |
|
|
|
15 |
image = gr.inputs.Image(shape=(192, 192))
|
16 |
label = gr.outputs.Label()
|
17 |
|
18 |
+
examples = ['matt damon.jpg', 'jesse.jpeg', 'matt damon 2.webp', 'jesse 2.jpeg',
|
19 |
+
'matt damon 3.webp', 'jesse 3.webp', 'matt damon 4.webp', 'jesse 4.webp']
|
20 |
|
21 |
intf = gr.Interface(fn=classify_image, inputs=image,
|
22 |
outputs=label, examples=examples)
|
23 |
|
24 |
+
intf.launch(inline=False, share=True)
|