Update app.py
Browse files
app.py
CHANGED
|
@@ -15,10 +15,10 @@ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
|
| 15 |
# pred,pred_idx,probs = learn.predict(img)
|
| 16 |
# return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 17 |
|
| 18 |
-
title = "Face condition Analyzer"
|
| 19 |
description = "A face condition detector trained on the custom dataset with fastai. Created using Gradio and HuggingFace Spaces."
|
| 20 |
examples = [['harmonal_acne.jpg'],['forehead_wrinkles.jpg'],['oily_skin.jpg']]
|
| 21 |
-
|
| 22 |
|
| 23 |
# gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,
|
| 24 |
# description=description,examples=examples,enable_queue=enable_queue).launch()
|
|
|
|
| 15 |
# pred,pred_idx,probs = learn.predict(img)
|
| 16 |
# return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 17 |
|
| 18 |
+
title = "Face condition Analyzer"
|
| 19 |
description = "A face condition detector trained on the custom dataset with fastai. Created using Gradio and HuggingFace Spaces."
|
| 20 |
examples = [['harmonal_acne.jpg'],['forehead_wrinkles.jpg'],['oily_skin.jpg']]
|
| 21 |
+
enable_queue=True
|
| 22 |
|
| 23 |
# gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),title=title,
|
| 24 |
# description=description,examples=examples,enable_queue=enable_queue).launch()
|