Spaces:
Runtime error
Runtime error
himanshu3103
commited on
Commit
β’
389c519
1
Parent(s):
ffd97f8
Made Public
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ def predict(img):
|
|
12 |
title = "BTS Members Classifier"
|
13 |
# description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
14 |
#article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
15 |
-
examples = ['Jimin.jpg','Jung_Kook.jpg','J_Hope.jpg'
|
16 |
interpretation='default'
|
17 |
enable_queue=True
|
18 |
|
19 |
-
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(128, 128)),outputs=gr.outputs.Label(),title=title,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
|
|
12 |
title = "BTS Members Classifier"
|
13 |
# description = "A pet breed classifier trained on the Oxford Pets dataset with fastai. Created as a demo for Gradio and HuggingFace Spaces."
|
14 |
#article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
15 |
+
examples = ['Jimin.jpg','Jung_Kook.jpg','J_Hope.jpg']
|
16 |
interpretation='default'
|
17 |
enable_queue=True
|
18 |
|
19 |
+
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(128, 128)),outputs=gr.outputs.Label(),title=title,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch(share=True)
|