Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
|
| 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()
|
|
@@ -46,4 +46,5 @@ with gr.Blocks(title=title,description=description,examples=examples,enable_queu
|
|
| 46 |
for i,current_row in df_temp.iterrows():
|
| 47 |
html_box = gr.HTML("<span><a href='{}'><img src ='{}'></a></span>".format(current_row['profit_link'],current_row['product_image']))
|
| 48 |
|
| 49 |
-
demo.launch()
|
|
|
|
|
|
| 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()
|
|
|
|
| 46 |
for i,current_row in df_temp.iterrows():
|
| 47 |
html_box = gr.HTML("<span><a href='{}'><img src ='{}'></a></span>".format(current_row['profit_link'],current_row['product_image']))
|
| 48 |
|
| 49 |
+
demo.launch()
|
| 50 |
+
enable_queue=True
|