Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import cv2
|
2 |
import numpy as np
|
3 |
|
@@ -45,7 +46,7 @@ def infer(image_in):
|
|
45 |
gr.Interface(
|
46 |
fn = infer,
|
47 |
inputs = gr.Image(
|
48 |
-
sources = "upload",
|
49 |
type = "filepath"
|
50 |
),
|
51 |
outputs = gr.Image()
|
|
|
1 |
+
import gradio as gr
|
2 |
import cv2
|
3 |
import numpy as np
|
4 |
|
|
|
46 |
gr.Interface(
|
47 |
fn = infer,
|
48 |
inputs = gr.Image(
|
49 |
+
sources = ["upload"],
|
50 |
type = "filepath"
|
51 |
),
|
52 |
outputs = gr.Image()
|