Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,6 @@
|
|
| 50 |
|
| 51 |
# demo.launch()
|
| 52 |
|
| 53 |
-
|
| 54 |
from ultralytics import YOLO
|
| 55 |
import pandas as pd
|
| 56 |
from PIL import Image
|
|
@@ -90,7 +89,7 @@ def detect(image):
|
|
| 90 |
nutrition = get_nutrition(label)
|
| 91 |
detected_info.append(nutrition)
|
| 92 |
|
| 93 |
-
return Image.fromarray(result.plot()), detected_info
|
| 94 |
|
| 95 |
# Gradio app
|
| 96 |
demo = gr.Interface(
|
|
@@ -103,3 +102,4 @@ demo = gr.Interface(
|
|
| 103 |
|
| 104 |
demo.launch()
|
| 105 |
|
|
|
|
|
|
| 50 |
|
| 51 |
# demo.launch()
|
| 52 |
|
|
|
|
| 53 |
from ultralytics import YOLO
|
| 54 |
import pandas as pd
|
| 55 |
from PIL import Image
|
|
|
|
| 89 |
nutrition = get_nutrition(label)
|
| 90 |
detected_info.append(nutrition)
|
| 91 |
|
| 92 |
+
return Image.fromarray(result.plot()), detected_info
|
| 93 |
|
| 94 |
# Gradio app
|
| 95 |
demo = gr.Interface(
|
|
|
|
| 102 |
|
| 103 |
demo.launch()
|
| 104 |
|
| 105 |
+
|