tomas-gajarsky commited on
Commit
2398e1d
1 Parent(s): fc55db6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -18,7 +18,9 @@ def inference(path_image):
18
  path_output=None,
19
  )
20
  pil_image = torchvision.transforms.functional.to_pil_image(response.img)
21
- return pil_image
 
 
22
 
23
 
24
  title = "facetorch"
@@ -28,7 +30,7 @@ article = "<p style='text-align: center'><a href='https://github.com/tomas-gajar
28
  demo=gr.Interface(
29
  inference,
30
  [gr.inputs.Image(label="Input", type="filepath")],
31
- gr.outputs.Image(type="pil", label="Output"),
32
  title=title,
33
  description=description,
34
  article=article,
 
18
  path_output=None,
19
  )
20
  pil_image = torchvision.transforms.functional.to_pil_image(response.img)
21
+
22
+ out_tuple = (pil_image, str(response))
23
+ return out_tuple
24
 
25
 
26
  title = "facetorch"
 
30
  demo=gr.Interface(
31
  inference,
32
  [gr.inputs.Image(label="Input", type="filepath")],
33
+ [gr.outputs.Image(type="pil", label="Output"), gr.outputs.Textbox(label="Response", max_lines=200)],
34
  title=title,
35
  description=description,
36
  article=article,