Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def inference(img, lang):
|
|
24 |
im_show = Image.fromarray(im_show)
|
25 |
im_show.save('result.jpg')
|
26 |
|
27 |
-
return 'result.jpg',
|
28 |
|
29 |
# return 'result.jpg'
|
30 |
|
@@ -37,7 +37,7 @@ app = gr.Interface(
|
|
37 |
inference,
|
38 |
[gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['es', 'en'], type="value", value='ch', label='language')],
|
39 |
# gr.outputs.Image(type='file', label='Output'),
|
40 |
-
outputs=["image", "text"
|
41 |
title=title,
|
42 |
description=description,
|
43 |
article=article,
|
|
|
24 |
im_show = Image.fromarray(im_show)
|
25 |
im_show.save('result.jpg')
|
26 |
|
27 |
+
return 'result.jpg', '\n'.join(txts)
|
28 |
|
29 |
# return 'result.jpg'
|
30 |
|
|
|
37 |
inference,
|
38 |
[gr.Image(type='filepath', label='Input'),gr.Dropdown(choices=['es', 'en'], type="value", value='ch', label='language')],
|
39 |
# gr.outputs.Image(type='file', label='Output'),
|
40 |
+
outputs=["image", "text"],
|
41 |
title=title,
|
42 |
description=description,
|
43 |
article=article,
|