vumichien commited on
Commit
ee7d893
·
1 Parent(s): b11de8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -37,13 +37,12 @@ def infer(image):
37
  print(most_close, diff_value)
38
  if most_close >= area_thres and diff_value >= 0.5:
39
  voice_bot = tts(defaul_bot_voice, language="ja")
40
- return voice_bot, out_img
41
 
42
  iface = gr.Interface(
43
  fn=infer,
44
  title="aisatsu api",
45
  inputs=[gr.Image(label="image", type="pil", shape=(960, 640))],
46
- outputs=[gr.Image(label="output image"), gr.Textbox(label="output voice"))],
47
- cache_examples=True,
48
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>.",
49
- examples=examples).launch(enable_queue=True)
 
37
  print(most_close, diff_value)
38
  if most_close >= area_thres and diff_value >= 0.5:
39
  voice_bot = tts(defaul_bot_voice, language="ja")
40
+ return out_img, voice_bot
41
 
42
  iface = gr.Interface(
43
  fn=infer,
44
  title="aisatsu api",
45
  inputs=[gr.Image(label="image", type="pil", shape=(960, 640))],
46
+ outputs=[gr.Image(label="output image"), gr.Textbox(label="output voice")],
 
47
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>.",
48
+ ).launch(enable_queue=True, debug=True, share=True)