mirror of
https://github.com/aigc3d/LAM_Audio2Expression.git
synced 2026-02-04 09:29:24 +08:00
fix: Fix bug
This commit is contained in:
@@ -37,7 +37,9 @@ except:
|
|||||||
h5_rendering = True
|
h5_rendering = True
|
||||||
|
|
||||||
|
|
||||||
def assert_input_image(input_image):
|
def assert_input_image(input_image,input_zip_textbox):
|
||||||
|
if(os.path.exists(input_zip_textbox)):
|
||||||
|
return
|
||||||
if input_image is None:
|
if input_image is None:
|
||||||
raise gr.Error('No image selected or uploaded!')
|
raise gr.Error('No image selected or uploaded!')
|
||||||
|
|
||||||
@@ -254,7 +256,7 @@ def demo_lam_audio2exp(infer, cfg):
|
|||||||
|
|
||||||
submit.click(
|
submit.click(
|
||||||
fn=assert_input_image,
|
fn=assert_input_image,
|
||||||
inputs=[input_image],
|
inputs=[input_image,input_zip_textbox],
|
||||||
queue=False,
|
queue=False,
|
||||||
).success(
|
).success(
|
||||||
fn=prepare_working_dir,
|
fn=prepare_working_dir,
|
||||||
|
|||||||
Reference in New Issue
Block a user