Spaces:
Runtime error
Runtime error
Commit ·
4f52558
1
Parent(s): 7bce4a4
Update output
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -55,7 +55,8 @@ def show_preds(input_image):
|
|
| 55 |
gr_interface = gr.Interface(
|
| 56 |
fn=show_preds,
|
| 57 |
inputs=["image"],
|
| 58 |
-
outputs=[gr.outputs.Image(type="pil")],
|
|
|
|
| 59 |
title="ODOR Object Detector",
|
| 60 |
description="A DINO model with focalnet architecture that detects objects relating to smells. Upload an image or click an example image below to use.",
|
| 61 |
)
|
|
|
|
| 55 |
gr_interface = gr.Interface(
|
| 56 |
fn=show_preds,
|
| 57 |
inputs=["image"],
|
| 58 |
+
#outputs=[gr.outputs.Image(type="pil")],
|
| 59 |
+
outputs=[gr.Image(type="pil")],
|
| 60 |
title="ODOR Object Detector",
|
| 61 |
description="A DINO model with focalnet architecture that detects objects relating to smells. Upload an image or click an example image below to use.",
|
| 62 |
)
|
requirements.txt
CHANGED
|
@@ -5,6 +5,7 @@ pybind11
|
|
| 5 |
flake8==3.8.1
|
| 6 |
isort==4.3.21
|
| 7 |
black==22.3.0
|
|
|
|
| 8 |
autoflake
|
| 9 |
timm
|
| 10 |
pytest
|
|
|
|
| 5 |
flake8==3.8.1
|
| 6 |
isort==4.3.21
|
| 7 |
black==22.3.0
|
| 8 |
+
pillow==9.5.0
|
| 9 |
autoflake
|
| 10 |
timm
|
| 11 |
pytest
|