Spaces:
Paused
Paused
Update app.py
Browse files
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
|
| 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 |
-
|
|
|
|
| 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)
|