Spaces:
Runtime error
Runtime error
amydeng2000
commited on
Commit
•
b75ee56
1
Parent(s):
8ba5c24
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ from fastai.vision.all import *
|
|
2 |
import gradio as gr
|
3 |
|
4 |
categories = ('Chinese', 'Korean')
|
5 |
-
|
6 |
learn = load_learner('model.pkl')
|
7 |
|
8 |
def classify_image(img):
|
@@ -14,8 +13,6 @@ label = gr.Label()
|
|
14 |
examples = ['Beijing_hot_pot.jpg', 'chinese_hot_pot.jpg', 'Korean_hot_pot.jpg', 'dumpling_hot_pot.png']
|
15 |
title = "Chinese vs. Koran Hot Pot Classifier " + "\U0001F60B"
|
16 |
description = "Built with <3 by your biggest hot pot fan!"
|
17 |
-
thumbnail = "https://i.redd.it/amq1yg70gop21.jpg"
|
18 |
-
|
19 |
|
20 |
-
demo = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, allow_flagging = "never", title=title, description=description
|
21 |
demo.launch(inline=False)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
categories = ('Chinese', 'Korean')
|
|
|
5 |
learn = load_learner('model.pkl')
|
6 |
|
7 |
def classify_image(img):
|
|
|
13 |
examples = ['Beijing_hot_pot.jpg', 'chinese_hot_pot.jpg', 'Korean_hot_pot.jpg', 'dumpling_hot_pot.png']
|
14 |
title = "Chinese vs. Koran Hot Pot Classifier " + "\U0001F60B"
|
15 |
description = "Built with <3 by your biggest hot pot fan!"
|
|
|
|
|
16 |
|
17 |
+
demo = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, allow_flagging = "never", title=title, description=description)
|
18 |
demo.launch(inline=False)
|