Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
import torch
|
| 4 |
-
|
| 5 |
from model import create_effnetb2
|
| 6 |
from timeit import default_timer as timer
|
| 7 |
from typing import Tuple, Dict
|
|
@@ -34,8 +33,6 @@ title="BiteVision Mini π π£ π₯©"
|
|
| 34 |
description="Drag/upload an image out of π pizza π£ sushi π₯© steak, and this BiteVision Mini will classify it accordingly.π€©"
|
| 35 |
article="by Aakash Haldankar"
|
| 36 |
|
| 37 |
-
#examples=Path("/Applications/DLCV/demos/foodvision_mini/examples")
|
| 38 |
-
|
| 39 |
example_list=[["examples/"+i] for i in os.listdir("examples")]
|
| 40 |
|
| 41 |
demo=gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs=[gr.Label(num_top_classes=3, label="Predictions"),
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
import torch
|
|
|
|
| 4 |
from model import create_effnetb2
|
| 5 |
from timeit import default_timer as timer
|
| 6 |
from typing import Tuple, Dict
|
|
|
|
| 33 |
description="Drag/upload an image out of π pizza π£ sushi π₯© steak, and this BiteVision Mini will classify it accordingly.π€©"
|
| 34 |
article="by Aakash Haldankar"
|
| 35 |
|
|
|
|
|
|
|
| 36 |
example_list=[["examples/"+i] for i in os.listdir("examples")]
|
| 37 |
|
| 38 |
demo=gr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs=[gr.Label(num_top_classes=3, label="Predictions"),
|