Spaces:
Runtime error
Runtime error
added footer
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def predict(img) -> Tuple[Dict, float]:
|
|
62 |
title = "FoodVision 🍕🥙"
|
63 |
description = "A Simple Deep Learning Application which is trained on EfficientNetB2 Fine Tuned computer vision model to classify food images of [101 different types](https://huggingface.co/spaces/Hexii/FoodVision/blob/main/class_names.txt)."
|
64 |
article = "Created by Ansari Abu Huzaifa , Learned at [ZTM Academy](https://www.learnpytorch.io/)"
|
65 |
-
|
66 |
# Create examples list from "examples/" directory
|
67 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
68 |
|
@@ -78,7 +78,12 @@ app = gr.Interface(
|
|
78 |
title=title,
|
79 |
description=description,
|
80 |
article=article,
|
|
|
81 |
)
|
82 |
|
|
|
|
|
|
|
|
|
83 |
# launch the App
|
84 |
app.launch()
|
|
|
62 |
title = "FoodVision 🍕🥙"
|
63 |
description = "A Simple Deep Learning Application which is trained on EfficientNetB2 Fine Tuned computer vision model to classify food images of [101 different types](https://huggingface.co/spaces/Hexii/FoodVision/blob/main/class_names.txt)."
|
64 |
article = "Created by Ansari Abu Huzaifa , Learned at [ZTM Academy](https://www.learnpytorch.io/)"
|
65 |
+
FOOTER = '<img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.glitch.me/badge?page_id=gradio-blocks.Image-Animation-using-Thin-Plate-Spline-Motion-Model" />'
|
66 |
# Create examples list from "examples/" directory
|
67 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
68 |
|
|
|
78 |
title=title,
|
79 |
description=description,
|
80 |
article=article,
|
81 |
+
footer=FOOTER
|
82 |
)
|
83 |
|
84 |
+
with gr.Blocks(theme="huggingface", css='style.css') as demo:
|
85 |
+
with gr.Box():
|
86 |
+
gr.Markdown(FOOTER)
|
87 |
+
|
88 |
# launch the App
|
89 |
app.launch()
|