crazyai-kby
commited on
Commit
·
3efd29a
1
Parent(s):
885ca07
Debug
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def run(file):
|
|
13 |
out_json = {'json': url}
|
14 |
out_img = in_image
|
15 |
|
16 |
-
return
|
17 |
in_image = cv2.imread(file)
|
18 |
|
19 |
encode_img = cv2.imencode('.jpg', in_image)[1].tostring()
|
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
|
|
53 |
inputs=app_input)
|
54 |
start_button = gr.Button("Run")
|
55 |
with gr.Column():
|
56 |
-
app_output = [gr.
|
57 |
|
58 |
start_button.click(run, inputs=app_input, outputs=app_output)
|
59 |
|
|
|
13 |
out_json = {'json': url}
|
14 |
out_img = in_image
|
15 |
|
16 |
+
return out_json
|
17 |
in_image = cv2.imread(file)
|
18 |
|
19 |
encode_img = cv2.imencode('.jpg', in_image)[1].tostring()
|
|
|
53 |
inputs=app_input)
|
54 |
start_button = gr.Button("Run")
|
55 |
with gr.Column():
|
56 |
+
app_output = [gr.JSON()]
|
57 |
|
58 |
start_button.click(run, inputs=app_input, outputs=app_output)
|
59 |
|