Spaces:
Sleeping
Sleeping
tensor
Browse files- .gitignore +1 -0
- app.py +2 -2
.gitignore
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
flagged/
|
| 2 |
*.pt
|
| 3 |
*.png
|
|
|
|
| 4 |
gradio_cached_examples/
|
|
|
|
| 1 |
flagged/
|
| 2 |
*.pt
|
| 3 |
*.png
|
| 4 |
+
*.jpg
|
| 5 |
gradio_cached_examples/
|
app.py
CHANGED
|
@@ -40,10 +40,10 @@ def show_preds_image(image_path):
|
|
| 40 |
|
| 41 |
|
| 42 |
inputs_image = [
|
| 43 |
-
gr.components.Image(label="Input Image"),
|
| 44 |
]
|
| 45 |
outputs_image = [
|
| 46 |
-
gr.components.Image(label="Output Image"),
|
| 47 |
]
|
| 48 |
interface_image = gr.Interface(
|
| 49 |
fn=show_preds_image,
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
inputs_image = [
|
| 43 |
+
gr.components.Image(type="filepath", label="Input Image"),
|
| 44 |
]
|
| 45 |
outputs_image = [
|
| 46 |
+
gr.components.Image(type="tensor", label="Output Image"),
|
| 47 |
]
|
| 48 |
interface_image = gr.Interface(
|
| 49 |
fn=show_preds_image,
|