kothariyashhh commited on
Commit
a479343
·
verified ·
1 Parent(s): d7ab7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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', result, '\n'.join(txts)
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", "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,