Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -345,7 +345,7 @@ def turn_img_into_voice(frame, lang, tld):
|
|
345 |
return file_path, f_name, pred_time
|
346 |
|
347 |
|
348 |
-
path = [["D:/cuoc_thi/test_img/364452351_843427357389915_7340823319235373312_n.jpg"],["D:/cuoc_thi/test_img/download.jpg"],["D:/cuoc_thi/test_img/tong-hop-cac-mau-gia-ke-de-bat-dia-thong-minh-hot-nhat-2.jpg"]]
|
349 |
|
350 |
|
351 |
iface = gr.Interface(fn=turn_img_into_voice,
|
@@ -355,8 +355,8 @@ iface = gr.Interface(fn=turn_img_into_voice,
|
|
355 |
outputs=[gr.Audio(label="Audio", autoplay=True),
|
356 |
gr.File(label="Audio File"),
|
357 |
gr.Number(label="Prediction time (s)")],
|
358 |
-
examples=path,
|
359 |
allow_flagging="never",
|
360 |
live=True)
|
361 |
|
362 |
-
iface.launch(enable_queue=True, share=False)
|
|
|
345 |
return file_path, f_name, pred_time
|
346 |
|
347 |
|
348 |
+
#path = [["D:/cuoc_thi/test_img/364452351_843427357389915_7340823319235373312_n.jpg"],["D:/cuoc_thi/test_img/download.jpg"],["D:/cuoc_thi/test_img/tong-hop-cac-mau-gia-ke-de-bat-dia-thong-minh-hot-nhat-2.jpg"]]
|
349 |
|
350 |
|
351 |
iface = gr.Interface(fn=turn_img_into_voice,
|
|
|
355 |
outputs=[gr.Audio(label="Audio", autoplay=True),
|
356 |
gr.File(label="Audio File"),
|
357 |
gr.Number(label="Prediction time (s)")],
|
358 |
+
#examples=path,
|
359 |
allow_flagging="never",
|
360 |
live=True)
|
361 |
|
362 |
+
#iface.launch(enable_queue=True, share=False)
|